From: Danny Al-Gaaf Date: Wed, 22 Feb 2017 17:20:32 +0000 (+0100) Subject: fix UnboundLocalError X-Git-Tag: v1.5.38~9^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=966f458fe2d8837fc139d066dc252fde3643e2d6;p=ceph-deploy.git fix UnboundLocalError 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 --- diff --git a/ceph_deploy/hosts/debian/install.py b/ceph_deploy/hosts/debian/install.py index 4de7e10..7e7f439 100644 --- a/ceph_deploy/hosts/debian/install.py +++ b/ceph_deploy/hosts/debian/install.py @@ -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'