Handle case where .UNFONFIGURE file isn't there

reviewable/pr18780/r1
Paul Markham 10 years ago
parent 219ec18b33
commit eb44a5b6b8

@ -161,6 +161,7 @@ class Zone(object):
self.configure_ssh_keys() self.configure_ssh_keys()
def configure_sysid(self): def configure_sysid(self):
if os.path.isfile('%s/root/etc/.UNCONFIGURED' % self.path):
os.unlink('%s/root/etc/.UNCONFIGURED' % self.path) os.unlink('%s/root/etc/.UNCONFIGURED' % self.path)
open('%s/root/noautoshutdown' % self.path, 'w').close() open('%s/root/noautoshutdown' % self.path, 'w').close()

Loading…
Cancel
Save