Skip to content

Commit e460b65

Browse files
Fix method call bugs when accessign non defined variables
1 parent e357ef7 commit e460b65

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/integration/plugins/test_nicira_controller.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ def get_transport_zone_from_controller(cls, controller_host, credentials):
214214
if result_count == 0:
215215
raise Exception('Nicira controller did not return any Transport Zones')
216216
elif result_count > 1:
217-
self.logger.debug("Nicira controller returned %s Transport Zones, picking first one" % resultCount)
217+
cls.logger.debug("Nicira controller returned %s Transport Zones, picking first one" % resultCount)
218218
transport_zone_api_url = list_transport_zone_response['results'][0]['_href']
219219
r3 = requests.get(
220220
"https://%s%s" % (controller_host, transport_zone_api_url),
@@ -525,10 +525,10 @@ def test_03_nicira_tunnel_guest_network(self):
525525
result = str(ssh.execute(ssh_command))
526526
self.logger.debug("SSH result: %s; COUNT is ==> %s" % (result, result.count("3 packets received")))
527527
except Exception as e:
528-
self.fail("SSH Access failed for %s: %s" % (vmObj.get_ip(), e))
528+
self.fail("SSH Access failed for %s: %s" % (virtual_machine.get_ip(), e))
529529

530530
self.assertEqual(result.count('3 packets received'), 1, 'Ping to outside world from VM should be successful')
531-
531+
532532
@attr(tags = ["advanced", "smoke", "nicira"], required_hardware="true")
533533
def test_04_nicira_shared_networks_numerical_vlanid(self):
534534
"""

0 commit comments

Comments
 (0)