Skip to content

Commit 122a9a9

Browse files
committed
provision group after other fixups (SOFTWARE-5187)
1 parent db6aa4e commit 122a9a9

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

group_fixup.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,17 @@ def rename_co_group(gid, group, newname):
274274
return call_api3(PUT, "co_groups/%s.json" % gid, data)
275275

276276

277+
def provision_group(gid):
278+
prov_id = options.prov_id
279+
path = f"co_provisioning_targets/provision/{prov_id}/cogroupid:{gid}.json"
280+
data = {
281+
"RequestType" : "CoGroupProvisioning",
282+
"Version" : "1.0",
283+
"Synchronous" : True
284+
}
285+
return call_api3(POST, path, data)
286+
287+
277288
def fixup_unixcluster_group(gid):
278289
group = get_co_group(gid)
279290
oldname = group["Name"]
@@ -287,6 +298,8 @@ def fixup_unixcluster_group(gid):
287298
for id_ in ids_to_delete:
288299
delete_identifier(id_)
289300

301+
provision_group(gid)
302+
290303
# http errors raise exceptions, so at this point we apparently succeeded
291304
print(":thumbsup:")
292305
return 0

0 commit comments

Comments
 (0)