diff --git a/test/integration/component/test_snapshot_gc.py b/test/integration/component/test_snapshot_gc.py index 7727d1cf41c..ca99afa85d1 100644 --- a/test/integration/component/test_snapshot_gc.py +++ b/test/integration/component/test_snapshot_gc.py @@ -282,7 +282,7 @@ class TestAccountSnapshotClean(cloudstackTestCase): ssh_client.execute(c) except Exception as e: self.fail("SSH failed for management server: %s - %s" % - (self.services["mgmt_server"]["ipaddress"], e)) + (self.config.mgtSvr[0].mgtSvrIp, e)) res = str(snapshots) return res.count(snapshot_id) == 1 @@ -401,4 +401,4 @@ class TestAccountSnapshotClean(cloudstackTestCase): ) self.assertFalse(self.is_snapshot_on_nfs(snapshot_id), "Snapshot was still found no NFS after account gc") - return \ No newline at end of file + return diff --git a/test/integration/component/test_snapshot_limits.py b/test/integration/component/test_snapshot_limits.py index 429e67e0b87..577b9e51425 100644 --- a/test/integration/component/test_snapshot_limits.py +++ b/test/integration/component/test_snapshot_limits.py @@ -270,7 +270,7 @@ class TestSnapshotLimit(cloudstackTestCase): ssh_client.execute(c) except Exception as e: self.fail("SSH failed for management server: %s - %s" % - (self.services["mgmt_server"]["ipaddress"], e)) + (self.config.mgtSvr[0].mgtSvrIp, e)) res = str(snapshots) return res.count(snapshot_id) == 1 @@ -384,4 +384,4 @@ class TestSnapshotLimit(cloudstackTestCase): qresult = qresultset[0] snapshot_id = qresult[0] self.is_snapshot_on_nfs(snapshot_id) - return \ No newline at end of file + return diff --git a/test/integration/component/test_snapshots.py b/test/integration/component/test_snapshots.py index fcb042b9336..49b10fed7d2 100644 --- a/test/integration/component/test_snapshots.py +++ b/test/integration/component/test_snapshots.py @@ -262,7 +262,7 @@ class TestSnapshots(cloudstackTestCase): ssh_client.execute(c) except Exception as e: self.fail("SSH failed for management server: %s - %s" % - (self.services["mgmt_server"]["ipaddress"], e)) + (self.config.mgtSvr[0].mgtSvrIp, e)) res = str(snapshots) return res.count(snapshot_id) == 1