aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Cordero <gentoo.catalyst@0xdc.io>2022-04-21 07:08:25 +0000
committerMatt Turner <mattst88@gentoo.org>2022-05-13 13:42:41 -0400
commit430a699ca9262b25fea2e8e2f0ce4eea56e6c898 (patch)
treee6855311ef1c25fc3a2acf476e6f3effdbbfe79d /catalyst
parentcatalyst/stage4: don't run split on a list (diff)
downloadcatalyst-430a699ca9262b25fea2e8e2f0ce4eea56e6c898.tar.gz
catalyst-430a699ca9262b25fea2e8e2f0ce4eea56e6c898.tar.bz2
catalyst-430a699ca9262b25fea2e8e2f0ce4eea56e6c898.zip
catalyst/stage4: don't split a single entry
A single entry in users is one user who could have multiple groups. 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.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/catalyst/base/stagebase.py b/catalyst/base/stagebase.py
index 7e6b9e32..d4875491 100644
--- a/catalyst/base/stagebase.py
+++ b/catalyst/base/stagebase.py
@@ -602,7 +602,7 @@ class StageBase(TargetBase, ClearBase, GenBase):
if users in self.settings:
self.settings["users"] = self.settings[users]
if isinstance(self.settings[users], str):
- self.settings["users"] = self.settings[users].split(",")
+ self.settings["users"] = [self.settings[users]]
del self.settings[users]
else:
self.settings["users"] = []