diff options
Diffstat (limited to 'cloudinit/config/cc_users_groups.py')
-rw-r--r-- | cloudinit/config/cc_users_groups.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cloudinit/config/cc_users_groups.py b/cloudinit/config/cc_users_groups.py index 7e5ecc7b..cbb351dc 100644 --- a/cloudinit/config/cc_users_groups.py +++ b/cloudinit/config/cc_users_groups.py @@ -17,14 +17,14 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. import grp -import pwd import os +import pwd import traceback +from cloudinit.settings import PER_INSTANCE +from cloudinit import ssh_util from cloudinit import templater from cloudinit import util -from cloudinit import ssh_util -from cloudinit.settings import PER_INSTANCE frequency = PER_INSTANCE @@ -45,7 +45,7 @@ def handle(name, cfg, cloud, log, _args): else: cloud.distro.create_group(item, []) - if 'users' in cfg: + if 'users' in cfg: user_zero = None for name, user_config in cfg['users'].iteritems(): @@ -68,8 +68,8 @@ def handle(name, cfg, cloud, log, _args): if user_zero == name: user_zero = None - log.warn("Distro has not implemented default user " \ - "creation. No default user will be created") + log.warn("Distro has not implemented default user " + "creation. No default user will be created") else: # Make options friendly for distro.create_user new_opts = {} |