X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=SfaData.py;h=433868e09f22f27312726c2b4408546bb9189613;hb=6f56bb40dbdd0a6a7c9b03b1a0d10d2057690456;hp=922a0b5c7075bb6dc8a14b8d2682b7d02a7f26a3;hpb=c0217389c3dae807a95f21df56b989c6f5609b0e;p=sfa-gui.git diff --git a/SfaData.py b/SfaData.py index 922a0b5..433868e 100644 --- a/SfaData.py +++ b/SfaData.py @@ -60,7 +60,7 @@ class SfaData: command = ["sfi.py", "-u", self.getUser(), "-a", self.getAuthority(), "-r", self.registry(), "-s", self.slicemgr(), "show", hrn] self.trace_command(command) - text = subprocess.Popen(command, stdout=PIPE).communicate()[0] + text = subprocess.Popen(command, stdout=subprocess.PIPE).communicate()[0] self.trace_end() return text @@ -69,7 +69,7 @@ class SfaData: command=["sfi.py", "-u", self.getUser(), "-a", self.getAuthority(), "-r", self.registry(), "-s", self.slicemgr(), "list", hrn] self.trace_command(command) - text = subprocess.Popen(command, stdout=PIPE).communicate()[0] + text = subprocess.Popen(command, stdout=subprocess.PIPE).communicate()[0] self.trace_end() lines = text.split('\n') for line in lines: @@ -108,7 +108,7 @@ class SfaData: "-r", self.registry(), "-s", self.slicemgr(), "create", slice, filename] self.trace_command(command) subprocess.call(command) - self.trace_en() + self.trace_end() class PlanetLabData(SfaData): def __init__(self):