Shalom Bhooshi created CLOUDSTACK-7459:
------------------------------------------

             Summary: CloudMonkey does not honour quoted/escaped (keyword) 
arguments containing whitespace
                 Key: CLOUDSTACK-7459
                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7459
             Project: CloudStack
          Issue Type: Bug
      Security Level: Public (Anyone can view this level - this is the default.)
          Components: Cloudmonkey
         Environment: cloudmonkey 5.2.0
            Reporter: Shalom Bhooshi


{code}
# cloudmonkey --version
cloudmonkey 5.2.0
{code}

{code}
# bash --version
GNU bash, version 4.2.37(1)-release (x86_64-pc-linux-gnu)
{code}

This is expected to work.
{code}
# cloudmonkey list ostypes keyword='Windows Server 2012'
Error:Unauthorized None
{code}

As is this.
{code}
# cloudmonkey list ostypes keyword=Windows\ Server\ 2012
Error:Unauthorized None
{code}

One needs to escape the whitespace further in the quoted string. This is not 
expected.

{code}
# cloudmonkey list ostypes keyword='Windows\ Server\ 2012'
{
  "count": 1,
  "ostype": [
    {
      "description": "Windows Server 2012 (64-bit)",
      "id": "7d6609ea-49ef-11e3-9349-001d096561b2",
      "oscategoryid": "762042ae-49ef-11e3-9349-001d096561b2"
    }
  ]
}
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to