Fixed bug in gam <UserTypeEntity> create task <TasklistIDEntity>

This commit is contained in:
Ross Scroggs
2023-10-17 20:25:24 -07:00
parent 7915f97bd5
commit 7e9207ae3c
5 changed files with 28 additions and 10 deletions

View File

@@ -1,3 +1,8 @@
6.64.16
Fixed bug in `gam <UserTypeEntity> create task <TasklistIDEntity>` that caused a trap
when an invalid TaskListID was specified.
6.64.15
Updated `lookerstudioassets|lookerstudiopermissions` commands to handle the following error:

View File

@@ -69063,9 +69063,9 @@ def getTaskMoveAttribute(myarg, kwargs):
def processTasks(users):
action = Act.Get()
if action != Act.CREATE:
tasklistTaskEntity = getUserObjectEntity(Cmd.OB_TASKLIST_ID_ENTITY, Ent.TASKLIST)
tasklistTaskEntity = getUserObjectEntity(Cmd.OB_TASKLIST_ID_ENTITY, Ent.TASK)
else:
tasklistTaskEntity = getUserObjectEntity(Cmd.OB_TASKLIST_ID_TASK_ID_ENTITY, Ent.TASKLIST)
tasklistTaskEntity = getUserObjectEntity(Cmd.OB_TASKLIST_ID_TASK_ID_ENTITY, Ent.TASK)
if action in {Act.DELETE, Act.CLEAR}:
FJQC = None
checkForExtraneousArguments()
@@ -69103,6 +69103,7 @@ def processTasks(users):
tasklist, task = tasklistTask.split('/', 1)
else:
tasklist = tasklistTask
task = body.get('title', '')
try:
if action == Act.DELETE:
callGAPI(svc.tasks(), 'delete',