X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fclient%2Fsfi.py;h=6d7af29c83db63937e64dc03bc01d80ae29bd60b;hb=b47e82ba386c944c888970cc254b09d80ac112a7;hp=317c19d54e7b9ba0f4af0ca5503ac50034287680;hpb=4ea7f6be6955285c746e451a21162f70d2cbe58b;p=sfa.git diff --git a/sfa/client/sfi.py b/sfa/client/sfi.py index 317c19d5..6d7af29c 100644 --- a/sfa/client/sfi.py +++ b/sfa/client/sfi.py @@ -147,10 +147,10 @@ def save_records_to_file(filename, record_dicts, format="xml"): print "unknown output format", format def save_record_to_file(filename, record_dict): - rec_record = Record(dict=record_dict) - str = record.save_to_string() + record = Record(dict=record_dict) + xml = record.save_as_xml() f=codecs.open(filename, encoding='utf-8',mode="w") - f.write(str) + f.write(xml) f.close() return @@ -904,6 +904,7 @@ or with an slice hrn, shows currently provisioned resources rspec.filter({'component_manager_id': server_version['urn']}) rspec = RSpecConverter.to_pg_rspec(rspec.toxml(), content_type='request') else: + print >>sys.stderr, "\r\n \r\n \r\n WOOOOOO" users = sfa_users_arg(user_records, slice_record) # do not append users, keys, or slice tags. Anything @@ -914,7 +915,6 @@ or with an slice hrn, shows currently provisioned resources api_options = {} api_options ['append'] = False api_options ['call_id'] = unique_call_id() - result = server.CreateSliver(slice_urn, creds, rspec, users, *self.ois(server, api_options)) value = ReturnValue.get_value(result) if self.options.raw: