You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2019/07/19 21:04:46 UTC

[libcloud] 02/08: added location when creating ip

This is an automated email from the ASF dual-hosted git repository.

tomaz pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/libcloud.git

commit 785807159d5543f88a8fbad3985e7e4a6b2d0fcc
Author: Reza Shahriari <re...@Rezas-MacBook-Pro.local>
AuthorDate: Fri Jul 19 11:25:51 2019 -0400

    added location when creating ip
---
 libcloud/test/compute/test_azure_arm.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libcloud/test/compute/test_azure_arm.py b/libcloud/test/compute/test_azure_arm.py
index cd0a87b..789ba9d 100644
--- a/libcloud/test/compute/test_azure_arm.py
+++ b/libcloud/test/compute/test_azure_arm.py
@@ -566,7 +566,8 @@ class AzureNodeDriverTests(LibcloudTestCase):
         self.assertTrue(res_value)
     
     def test_delete_public_ip(self):
-        public_ip = self.driver.ex_create_public_ip(name='test_public_ip', resource_group='111111')
+        location = self.driver.list_locations()[0]
+        public_ip = self.driver.ex_create_public_ip(name='test_public_ip', resource_group='111111', location=location)
         res_value = self.driver.ex_delete_public_ip(public_ip)
         self.assertTrue(res_value)