From 966f458fe2d8837fc139d066dc252fde3643e2d6 Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Wed, 22 Feb 2017 18:20:32 +0100 Subject: [PATCH] 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 --- ceph_deploy/hosts/debian/install.py | 1 + 1 file changed, 1 insertion(+) 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' -- 2.47.3