Skip to content

Output of tuples is wrong #13831

@arnisoph

Description

@arnisoph
$ salt-call --versions
           Salt: 2014.1.0-8580-gf9ec0bf
         Python: 2.7.3 (default, Mar 13 2014, 11:03:55)
         Jinja2: 2.6
       M2Crypto: 0.21.1
 msgpack-python: 0.1.10
   msgpack-pure: Not Installed
       pycrypto: 2.6
        libnacl: Not Installed
         PyYAML: 3.10
          ioflo: Not Installed
          PyZMQ: 2.2.0
           RAET: Not Installed
            ZMQ: 2.2.0

(self-built Debian packages: https://github.com/bechtoldt/salt/tree/develop-arbe (6be051f))

foo.sls (Pillar):

#!py

def run():
  u = tuple(("test", 1, True, 3, {"s": "case"}, 5))
  foo = {"foo": u}

  return foo
$ salt-call pillar.get foo --out=raw
{'host123': ['test', 1, True, 3, {'s': 'case'}, 5]}

I think the output should be:

{'host123': ('test', 1, True, 3, {'s': 'case'}, 5)}

Metadata

Metadata

Assignees

No one assigned

    Labels

    fixed-pls-verifyfix is linked, bug author to confirm fixwon't-fixlegitimate issue, but won't fix

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions