X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=tools.py;h=ffbf711d553f8612d4da92c95e8d8a99fd4a73d7;hb=51304fa9ba39b6a6ffb766e6fa703fa049810792;hp=74705aad1774b6d16e7080348a2447f2cb213d7d;hpb=61c1ca0346aea5ed95330e4d4b2dedfb2ee5213a;p=nodemanager.git diff --git a/tools.py b/tools.py index 74705aa..ffbf711 100644 --- a/tools.py +++ b/tools.py @@ -461,7 +461,7 @@ def get_node_virt(): virt = 'vs' if subprocess.call(['vserver', '--help']) == 0 else 'lxc' except: virt = 'lxc' - with file(virt_stamp, "w") as f: + with open(virt_stamp, "w") as f: f.write(virt) return virt