Skip to content

Commit d40a0ca

Browse files
authored
Merge pull request #100094 from DEva-Hill/patch-1
Update create-microsoft-purview-python.md
2 parents b7df6d9 + 59a722c commit d40a0ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/purview/create-microsoft-purview-python.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ For more information about the governance capabilities of Microsoft Purview, for
106106
while (getattr(pa,'provisioning_state')) != "Succeeded" :
107107
pa = (purview_client.accounts.get(rg_name, purview_name))
108108
print(getattr(pa,'provisioning_state'))
109-
if getattr(pa,'provisioning_state') != "Failed" :
109+
if getattr(pa,'provisioning_state') == "Failed" :
110110
print("Error in creating Microsoft Purview account")
111111
break
112112
time.sleep(30)
@@ -165,7 +165,7 @@ Here’s the full Python code:
165165
while (getattr(pa,'provisioning_state')) != "Succeeded" :
166166
pa = (purview_client.accounts.get(rg_name, purview_name))
167167
print(getattr(pa,'provisioning_state'))
168-
if getattr(pa,'provisioning_state') != "Failed" :
168+
if getattr(pa,'provisioning_state') == "Failed" :
169169
print("Error in creating Microsoft Purview account")
170170
break
171171
time.sleep(30)

0 commit comments

Comments
 (0)