From dde17c6d67e4429ede15aef48a0450a919f6f386 Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Fri, 22 Sep 2017 15:34:31 -0700 Subject: [PATCH] FLAGS typo --- server/module_lib/icon_lib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/module_lib/icon_lib.py b/server/module_lib/icon_lib.py index 8db918e..7bb5292 100644 --- a/server/module_lib/icon_lib.py +++ b/server/module_lib/icon_lib.py @@ -72,7 +72,7 @@ class IconModule(object): def AddAdminUser(self, user): self.ExecChroot('adduser', '--system', '--group', '--disabled-password', '--shell=/bin/bash', user) - with open(os.path.join(self._chroot_path, 'etc', 'sudoers.d', FLAGS.username), 'w') as fh: + with open(os.path.join(self._chroot_path, 'etc', 'sudoers.d', user), 'w') as fh: fh.write('%s\tALL=(ALL) NOPASSWD: ALL\n' % user) def AddUserToGroup(self, user, group):