]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
fix UnboundLocalError 431/head
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 22 Feb 2017 17:20:32 +0000 (18:20 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 22 Feb 2017 17:20:32 +0000 (18:20 +0100)
If ceph-ceph_deploy is called with:
  'install node1 --no-adjust-repos --nogpgcheck'
python trace shows this error:
  UnboundLocalError: local variable 'extra_install_flags'
  referenced before assignment

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
ceph_deploy/hosts/debian/install.py

index 4de7e1043b6c4990beee76e11273b970d6d22a50..7e7f4396f5b172db4b89fa555f53ffcabf8d476f 100644 (file)
@@ -14,6 +14,7 @@ def install(distro, version_kind, version, adjust_repos, **kw):
     packages = kw.pop('components', [])
     codename = distro.codename
     machine = distro.machine_type
+    extra_install_flags = []
 
     if version_kind in ['stable', 'testing']:
         key = 'release'