mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Handle case where .UNFONFIGURE file isn't there
This commit is contained in:
@@ -161,7 +161,8 @@ class Zone(object):
|
||||
self.configure_ssh_keys()
|
||||
|
||||
def configure_sysid(self):
|
||||
os.unlink('%s/root/etc/.UNCONFIGURED' % self.path)
|
||||
if os.path.isfile('%s/root/etc/.UNCONFIGURED' % self.path):
|
||||
os.unlink('%s/root/etc/.UNCONFIGURED' % self.path)
|
||||
|
||||
open('%s/root/noautoshutdown' % self.path, 'w').close()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user