From: Warren Usui Date: Thu, 19 Dec 2013 22:20:12 +0000 (-0800) Subject: Do not run local handling fix if local parameter is not found. X-Git-Tag: v0.94.10~27^2^2~364^2~435^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=37815b76d3c643385f7787b7d31c3c39caadb6fe;p=ceph.git Do not run local handling fix if local parameter is not found. Fixes: 7042 Signed-off-by: Warren Usui --- diff --git a/teuthology/task/install.py b/teuthology/task/install.py index 7735165816e..ab0774f0cdb 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):