git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e89c6b1
)
correcting sfi add/update usage and help
author
Mohamed Larabi
<mohamed.larabi@inria.fr>
Thu, 6 Dec 2012 16:37:47 +0000
(17:37 +0100)
committer
Mohamed Larabi
<mohamed.larabi@inria.fr>
Thu, 6 Dec 2012 16:37:47 +0000
(17:37 +0100)
sfa/client/sfi.py
patch
|
blob
|
history
diff --git
a/sfa/client/sfi.py
b/sfa/client/sfi.py
index
30d6074
..
95795ee
100644
(file)
--- a/
sfa/client/sfi.py
+++ b/
sfa/client/sfi.py
@@
-328,8
+328,8
@@
class Sfi:
("version", ""),
("list", "authority"),
("show", "name"),
("version", ""),
("list", "authority"),
("show", "name"),
- ("add", "
record
"),
- ("update", "
record
"),
+ ("add", "
[record]
"),
+ ("update", "
[record]
"),
("remove", "name"),
("slices", ""),
("resources", "[slice_hrn]"),
("remove", "name"),
("slices", ""),
("resources", "[slice_hrn]"),
@@
-931,7
+931,7
@@
or version information about sfi itself
return
def add(self, options, args):
return
def add(self, options, args):
- "add record into registry from xml file (Register)"
+ "add record into registry
by using the command options (Recommended) or
from xml file (Register)"
auth_cred = self.my_authority_credential_string()
if options.show_credential:
show_credentials(auth_cred)
auth_cred = self.my_authority_credential_string()
if options.show_credential:
show_credentials(auth_cred)
@@
-956,7
+956,7
@@
or version information about sfi itself
return self.registry().Register(record_dict, auth_cred)
def update(self, options, args):
return self.registry().Register(record_dict, auth_cred)
def update(self, options, args):
- "update record into registry from xml file (Update)"
+ "update record into registry
by using the command options (Recommended) or
from xml file (Update)"
record_dict = {}
if len(args) > 0:
record_filepath = args[0]
record_dict = {}
if len(args) > 0:
record_filepath = args[0]