diff options
author | Daniel Cordero <gentoo.catalyst@0xdc.io> | 2022-04-21 07:08:24 +0000 |
---|---|---|
committer | Matt Turner <mattst88@gentoo.org> | 2022-05-13 13:42:15 -0400 |
commit | 214bb3d849d5bf7ce2314aab1858ed6e72b28108 (patch) | |
tree | 0a4e66877e0cb61f94f36fff271750fb24e49d01 /catalyst | |
parent | catalyst/stage4: fix handling of groups, users and keys (diff) | |
download | catalyst-214bb3d849d5bf7ce2314aab1858ed6e72b28108.tar.gz catalyst-214bb3d849d5bf7ce2314aab1858ed6e72b28108.tar.bz2 catalyst-214bb3d849d5bf7ce2314aab1858ed6e72b28108.zip |
catalyst/stage4: don't run split on a list
"groups" has been normalised into a list and does not have a split()
method.
Fixes: 5be6069b ("catalyst: support 3 new options")
Signed-off-by: Daniel Cordero <gentoo.catalyst@0xdc.io>
Signed-off-by: Matt Turner <mattst88@gentoo.org>
Diffstat (limited to 'catalyst')
-rw-r--r-- | catalyst/base/stagebase.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/catalyst/base/stagebase.py b/catalyst/base/stagebase.py index 1d71c59d..7e6b9e32 100644 --- a/catalyst/base/stagebase.py +++ b/catalyst/base/stagebase.py @@ -931,7 +931,7 @@ class StageBase(TargetBase, ClearBase, GenBase): env=self.env) def groups(self): - for x in self.settings["groups"].split(): + for x in self.settings["groups"]: log.notice("Creating group: '%s'", x) cmd(["groupadd", "-R", self.settings['chroot_path'], x], env=self.env) |