fix gs objects

This commit is contained in:
Jay Lee
2020-06-28 18:38:27 -04:00
parent c1063d1967
commit 40f5bb07d8

View File

@@ -38,7 +38,7 @@ def create():
if description.find(c) != -1: if description.find(c) != -1:
gs_body['description'] = description gs_body['description'] = description
if not gs: if not gs:
gs = build('groupssettings') gs = gam.buildGAPIObject'groupssettings')
gs_object = gs._rootDesc gs_object = gs._rootDesc
break break
else: else:
@@ -49,7 +49,7 @@ def create():
i += 1 i += 1
else: else:
if not gs: if not gs:
gs = build('groupssettings') gs = gam.buildGAPIObject('groupssettings')
gs_object = gs._rootDesc gs_object = gs._rootDesc
getGroupAttrValue(myarg, sys.argv[i + 1], gs_object, gs_body, getGroupAttrValue(myarg, sys.argv[i + 1], gs_object, gs_body,
'create') 'create')
@@ -464,7 +464,7 @@ def print_():
elif getSettings: elif getSettings:
gsfields = None gsfields = None
if getSettings: if getSettings:
gs = gam.build('groupssettings') gs = gam.buildGAPIObject('groupssettings')
roles = ','.join(sorted(set(roles))) roles = ','.join(sorted(set(roles)))
if roles: if roles:
if members: if members: