You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm creating Actions on OpenWhisk via Windows CLI. When a string is passed with single quotes, the quotes are ignored and as delimiter and treated as part of the string. If a string has a blank, then it sees as two different values and so an error occurs.
When I use double quotes, it works fine.
Linux CLI is working fine.
C:\Users\IBM_ADMIN\Desktop\OpenStack Files\Uses Case>wsk action invoke --blocking --result hello --param name 'Bernie' --param place 'Vermont'
{
"payload": "Hello, 'Bernie' from 'Vermont'"
}
C:\Users\IBM_ADMIN\Desktop\OpenStack Files\Uses Case>wsk action invoke --blocking --result hello --param name 'Bernie Sanders' --param place 'Vermont'
error: Invalid argument(s): Sanders'.
Run 'wsk --help' for usage.
C:\Users\IBM_ADMIN\Desktop\OpenStack Files\Uses Case>wsk action invoke --blocking --result hello --param name 'Bernie_Sanders' --param place 'Vermont'
{
"payload": "Hello, 'Bernie_Sanders' from 'Vermont'"
}
C:\Users\IBM_ADMIN\Desktop\OpenStack Files\Uses Case>wsk action invoke --blocking --result hello --param name "Bernie Sanders" --param place 'Vermont'
{
"payload": "Hello, Bernie Sanders from 'Vermont'"
}
The text was updated successfully, but these errors were encountered:
I'm creating Actions on OpenWhisk via Windows CLI. When a string is passed with single quotes, the quotes are ignored and as delimiter and treated as part of the string. If a string has a blank, then it sees as two different values and so an error occurs.
When I use double quotes, it works fine.
Linux CLI is working fine.
C:\Users\IBM_ADMIN\Desktop\OpenStack Files\Uses Case>wsk action invoke --blocking --result hello --param name 'Bernie' --param place 'Vermont'
{
"payload": "Hello, 'Bernie' from 'Vermont'"
}
C:\Users\IBM_ADMIN\Desktop\OpenStack Files\Uses Case>wsk action invoke --blocking --result hello --param name 'Bernie Sanders' --param place 'Vermont'
error: Invalid argument(s): Sanders'.
Run 'wsk --help' for usage.
C:\Users\IBM_ADMIN\Desktop\OpenStack Files\Uses Case>wsk action invoke --blocking --result hello --param name 'Bernie_Sanders' --param place 'Vermont'
{
"payload": "Hello, 'Bernie_Sanders' from 'Vermont'"
}
C:\Users\IBM_ADMIN\Desktop\OpenStack Files\Uses Case>wsk action invoke --blocking --result hello --param name "Bernie Sanders" --param place 'Vermont'
{
"payload": "Hello, Bernie Sanders from 'Vermont'"
}
The text was updated successfully, but these errors were encountered: