From f7a5756205ef726d95259e06b7c46ff0ef82ea28 Mon Sep 17 00:00:00 2001 From: Ryan Harper Date: Tue, 25 Oct 2016 19:05:22 -0500 Subject: cc_users_groups: fix remaing call to ds.normalize_user_groups Previous commit f0747c4b4cf073273e11d383f0354257be7276ed relocated normalize_users_groups to ug_util module, but missed modifying the cc_users_groups config module. Apply the location change to fix. --- cloudinit/config/cc_users_groups.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cloudinit/config') diff --git a/cloudinit/config/cc_users_groups.py b/cloudinit/config/cc_users_groups.py index cf9a6259..36352362 100644 --- a/cloudinit/config/cc_users_groups.py +++ b/cloudinit/config/cc_users_groups.py @@ -99,7 +99,7 @@ config keys for an entry in ``users`` are as follows: # Ensure this is aliased to a name not 'distros' # since the module attribute 'distros' # is a list of distros that are supported, not a sub-module -from cloudinit import distros as ds +from cloudinit.distros import ug_util from cloudinit.settings import PER_INSTANCE @@ -107,7 +107,7 @@ frequency = PER_INSTANCE def handle(name, cfg, cloud, _log, _args): - (users, groups) = ds.normalize_users_groups(cfg, cloud.distro) + (users, groups) = ug_util.normalize_users_groups(cfg, cloud.distro) for (name, members) in groups.items(): cloud.distro.create_group(name, members) for (user, config) in users.items(): -- cgit v1.2.3