Merge "Fix functional issues after nosdn deployment"
authorFeng Pan <fpan@redhat.com>
Mon, 9 Apr 2018 21:33:49 +0000 (21:33 +0000)
committerGerrit Code Review <gerrit@opnfv.org>
Mon, 9 Apr 2018 21:33:49 +0000 (21:33 +0000)
apex/tests/test_apex_undercloud.py
apex/undercloud/undercloud.py

index 9e2752a..fce7a55 100644 (file)
@@ -225,5 +225,5 @@ class TestUndercloud(unittest.TestCase):
             "https://trunk.rdoproject.org/centos7-{}"
             "/current-tripleo/delorean.repo".format(
                 constants.DEFAULT_OS_VERSION))
-        test_ops = {'--run-command': download_cmd}
+        test_ops = [{'--run-command': download_cmd}]
         mock_vutils.virt_customize.assert_called_with(test_ops, uc.volume)
index 2972351..d76174b 100644 (file)
@@ -276,7 +276,7 @@ class Undercloud:
             cmd = ("curl -L -f -o "
                    "/etc/yum.repos.d/deloran.repo {}".format(delorean_repo))
             try:
-                virt_utils.virt_customize({constants.VIRT_RUN_CMD: cmd},
+                virt_utils.virt_customize([{constants.VIRT_RUN_CMD: cmd}],
                                           self.volume)
             except Exception:
                 logging.warning("Failed to download and update delorean repo "