Nuwan Goonasekera 6 лет назад
Родитель
Сommit
16dcb0cb07
2 измененных файлов с 5 добавлено и 5 удалено
  1. 3 3
      cloudbridge/providers/azure/azure_client.py
  2. 2 2
      tests/test_network_service.py

+ 3 - 3
cloudbridge/providers/azure/azure_client.py

@@ -193,10 +193,10 @@ class AzureClient(object):
                     storage_account)
                 raise WaitStateException(
                     "Waited too long for storage account: {0} to "
-                    "become ready.".format(
+                    "become ready. It's currently in state: {1}".format(
                         storage_account,
-                        self.get_storage_account(storage_account).
-                        provisioning_state))
+                        self.get_storage_account(
+                            storage_account).provisioning_state))
 
             self._access_key_result = self.storage_client.storage_accounts. \
                 list_keys(self.resource_group, storage_account)

+ 2 - 2
tests/test_network_service.py

@@ -249,8 +249,8 @@ class CloudNetworkServiceTestCase(ProviderTestBase):
 
                 self.assertTrue(
                     len(router.subnets) == 0,
-                    "No subnet should be attached to router {1}".format(
-                        sn, router)
+                    "No subnet should be attached to router {0} but subnet {1}"
+                    " is currently attached to it.".format(router, sn)
                 )
                 router.attach_subnet(sn)
                 self.assertTrue(