Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] in windows kwargs are not parsed into json properly. #1

Open
whytewolf opened this issue Nov 8, 2024 · 0 comments
Open

[BUG] in windows kwargs are not parsed into json properly. #1

whytewolf opened this issue Nov 8, 2024 · 0 comments

Comments

@whytewolf
Copy link
Owner

under windows some how the variables are not parsed into json correctly.

guajillo salt-run test.arg test1 test2='["test","test2"]'

gives the following.

  "return": [
    {
      "saltmaster": {
        "fun": "runner.test.arg",
        "jid": "20241108074401655654",
        "user": "whytewolf",
        "fun_args": [
          "test1",
          {
            "test2": "[test,test2]"
          }
        ],
        "_stamp": "2024-11-08T07:44:02.487331",
        "return": {
          "args": [
            "test1"
          ],
          "kwargs": {
            "test2": "[test,test2]"
          }
        },
        "success": true
      }
    }
  ]

test2 should be a list of 2 items, not a str. i believe powershell is stripping out the double qoutes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant