From: Cédric Ollivier Date: Sun, 5 Jul 2020 09:33:01 +0000 (+0200) Subject: Use shallow copy - copy() is py3 only X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F67%2F70467%2F1;p=functest-kubernetes.git Use shallow copy - copy() is py3 only Change-Id: Ib470c4ddd36f4b522915e6e131f1b16aee268d15 Signed-off-by: Cédric Ollivier --- diff --git a/functest_kubernetes/ims/ims.py b/functest_kubernetes/ims/ims.py index 4d1e8c5a..d1882a92 100644 --- a/functest_kubernetes/ims/ims.py +++ b/functest_kubernetes/ims/ims.py @@ -88,7 +88,7 @@ class Vims(testcase.TestCase): self.__logger.debug( "create_namespaced_service: %s", api_response) # pylint: disable=no-member - status = self.deployment_list.copy() + status = self.deployment_list[:] watch_deployment = watch.Watch() for event in watch_deployment.stream( func=self.appsv1.list_namespaced_deployment,