]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
Do not run local handling fix if local parameter is not found. 165/head
authorWarren Usui <warren.usui@inktank.com>
Thu, 19 Dec 2013 22:20:12 +0000 (14:20 -0800)
committerWarren Usui <warren.usui@inktank.com>
Thu, 19 Dec 2013 22:20:12 +0000 (14:20 -0800)
Fixes: 7042
Signed-off-by: Warren Usui <warren.usui@inktank.com>
teuthology/task/install.py

index 7735165816e1f9982eba2514aaaec4dbbd2de395..ab0774f0cdba9ebd06f6464658dd294b414ba5bd 100644 (file)
@@ -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):