remove double status

This commit is contained in:
Asim Aslam
2021-10-26 17:37:29 +01:00
parent 2d80920c1e
commit f1fdbe13cd
3 changed files with 37 additions and 45 deletions

View File

@@ -367,10 +367,15 @@ func (e *Function) Describe(ctx context.Context, req *function.DescribeRequest,
return err
}
rsp.Function = f
} else {
rsp.Function = &function.Func{
Name: req.Name,
Project: req.Project,
}
}
// set describe info
rsp.Status = m["status"].(string)
rsp.Function.Status = m["status"].(string)
rsp.Timeout = m["timeout"].(string)
rsp.UpdatedAt = m["updateTime"].(string)