From 37815b76d3c643385f7787b7d31c3c39caadb6fe Mon Sep 17 00:00:00 2001 From: Warren Usui Date: Thu, 19 Dec 2013 14:20:12 -0800 Subject: [PATCH] Do not run local handling fix if local parameter is not found. Fixes: 7042 Signed-off-by: Warren Usui --- teuthology/task/install.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/teuthology/task/install.py b/teuthology/task/install.py index 773516581..ab0774f0c 100644 --- a/teuthology/task/install.py +++ b/teuthology/task/install.py @@ -350,9 +350,10 @@ def _update_deb_package_list_and_install(ctx, remote, debs, config): stdout=StringIO(), ) ldir = _get_local_dir(ctx, remote) - for fyle in os.listdir(ldir): - fname = "%s/%s" % (ldir, fyle) - remote.run(args=['sudo', 'dpkg', '-i', fname],) + if ldir: + for fyle in os.listdir(ldir): + fname = "%s/%s" % (ldir, fyle) + remote.run(args=['sudo', 'dpkg', '-i', fname],) def _yum_fix_repo_priority(remote, project, uri): -- 2.47.3