summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorDimitri John Ledkov <dimitri.ledkov@canonical.com>2014-07-23 16:48:14 +0100
committerDimitri John Ledkov <dimitri.ledkov@canonical.com>2014-07-23 16:48:14 +0100
commit6327e159f475ca4dcd97d1c6feea5f747090c41d (patch)
tree22f5924191bc3938e3c58bab6635be25c0375eb6 /setup.py
parentee4a64ecad554901a46bf8c8d2fb81f816a91818 (diff)
downloadvyos-cloud-init-6327e159f475ca4dcd97d1c6feea5f747090c41d.tar.gz
vyos-cloud-init-6327e159f475ca4dcd97d1c6feea5f747090c41d.zip
fix ups
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/setup.py b/setup.py
index 1a6d0cf4..8b1e6ece 100755
--- a/setup.py
+++ b/setup.py
@@ -93,13 +93,13 @@ class InitsysInstallData(install):
def initialize_options(self):
install.initialize_options(self)
- self.init_system = None
+ self.init_system = ""
def finalize_options(self):
install.finalize_options(self)
- if self.init_systems and isinstance(self.init_systems, str):
- self.init_systems = self.init_systems.split(",")
+ if self.init_system and isinstance(self.init_system, str):
+ self.init_system = self.init_system.split(",")
if len(self.init_system) == 0:
raise DistutilsArgError(("You must specify one of (%s) when"
@@ -110,7 +110,7 @@ class InitsysInstallData(install):
raise DistutilsArgError(
"Invalid --init-system: %s" % (','.join(bad)))
- for sys in self.init_systems:
+ for sys in self.init_system:
print("adding %s: %s" % (sys, str(INITSYS_ROOTS[sys])))
self.distribution.data_files.append(
(INITSYS_ROOTS[sys], INITSYS_FILES[sys]))