This is an automated email from the ASF dual-hosted git repository. rohit pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/cloudstack-cloudmonkey.git
The following commit(s) were added to refs/heads/master by this push: new f3e0992 network: remove nested quotes in parameters f3e0992 is described below commit f3e09928f940bd2d17283f117bc61eef272670ea Author: Rohit Yadav <ro...@apache.org> AuthorDate: Mon Dec 3 17:21:07 2018 +0530 network: remove nested quotes in parameters Signed-off-by: Rohit Yadav <ro...@apache.org> --- cmd/network.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cmd/network.go b/cmd/network.go index e02c11b..3ab1358 100644 --- a/cmd/network.go +++ b/cmd/network.go @@ -169,7 +169,12 @@ func NewAPIRequest(r *Request, api string, args []string, isAsync bool) (map[str for _, arg := range args { parts := strings.SplitN(arg, "=", 2) if len(parts) == 2 { - params.Add(parts[0], parts[1]) + key := parts[0] + value := parts[1] + if strings.HasPrefix(value, "\"") && strings.HasSuffix(value, "\"") { + value = value[1 : len(value)-1] + } + params.Add(key, value) } } params.Add("response", "json")