X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fmanagers%2Fregistry_manager.py;h=5567197d050662c4618c8dfcacc2a34803255961;hb=ecc85e0b923922cf7117d29b380f5284edb88f21;hp=1eafc10ffc0b07c3b0d8838bd910a341ebd5bf2c;hpb=0eb2fd645abe02f4fbb79d9ebc5a17b292b8dd2d;p=sfa.git diff --git a/sfa/managers/registry_manager.py b/sfa/managers/registry_manager.py index 1eafc10f..5567197d 100644 --- a/sfa/managers/registry_manager.py +++ b/sfa/managers/registry_manager.py @@ -1,3 +1,5 @@ +from __future__ import print_function + import types # for get_key_from_incoming_ip import tempfile @@ -503,7 +505,7 @@ class RegistryManager: # record.__dict__ as received by the driver seems to be off # anyway the driver should receive an object # (and then extract __dict__ itself if needed) - print "DO NOT REMOVE ME before driver.update, record={}".format(record) + print("DO NOT REMOVE ME before driver.update, record={}".format(record)) # as of June 2015: I suspect we could remove that print line above and replace it with # augment_with_sfa_builtins(record) # instead, that checks for these fields, like it is done above in List() @@ -623,7 +625,7 @@ class RegistryManager: for command in all_commands: (status, output) = commands.getstatusoutput(command) if status: - raise Exception, output + raise Exception(output) for filename in [key_filename, gid_filename]: os.unlink(filename)