Giter Site home page Giter Site logo

ansible-modules's People

Contributors

cytopia avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ansible-modules's Issues

AttributeError: 'str' object has no attribute 'decode'. Did you mean: 'encode'?

I know that this was built 5 years ago, but I'm looking for this exact piece of functionality with ansible :(

Receiving this error:

  File "/Users/duffy/.ansible/tmp/ansible-tmp-1663685850.6367428-32076-118898947106338/AnsiballZ_cloudformation_diff.py", line 107, in <module>
    _ansiballz_main()
  File "/Users/duffy/.ansible/tmp/ansible-tmp-1663685850.6367428-32076-118898947106338/AnsiballZ_cloudformation_diff.py", line 99, in _ansiballz_main
    invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)
  File "/Users/duffy/.ansible/tmp/ansible-tmp-1663685850.6367428-32076-118898947106338/AnsiballZ_cloudformation_diff.py", line 47, in invoke_module
    runpy.run_module(mod_name='ansible.modules.cloudformation_diff', init_globals=dict(_module_fqn='ansible.modules.cloudformation_diff', _modlib_path=modlib_path),
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/runpy.py", line 224, in run_module
    return _run_module_code(code, init_globals, run_name, mod_spec)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/runpy.py", line 96, in _run_module_code
    _run_code(code, mod_globals, init_globals,
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/var/folders/q3/bbn7n5hn4xdbkw68fy1pxhyw0000gn/T/ansible_cloudformation_diff_payload_eg0bs710/ansible_cloudformation_diff_payload.zip/ansible/modules/cloudformation_diff.py", line 590, in <module>
  File "/var/folders/q3/bbn7n5hn4xdbkw68fy1pxhyw0000gn/T/ansible_cloudformation_diff_payload_eg0bs710/ansible_cloudformation_diff_payload.zip/ansible/modules/cloudformation_diff.py", line 488, in main
AttributeError: 'str' object has no attribute 'decode'. Did you mean: 'encode'?
failed: [localhost] (item=default-routes) => {
    "ansible_loop_var": "item",
    "changed": false,
    "item": {
        "accounting": "platform",
        "classification": "standard",
        "name": "default-routes",
        "owner": "devops",
        "product": "platform",
        "service": "platform"
    },
    "rc": 1
}

MSG:

MODULE FAILURE
See stdout/stderr for the exact error


MODULE_STDERR:

Traceback (most recent call last):
  File "/Users/duffy/.ansible/tmp/ansible-tmp-1663685850.6367428-32076-118898947106338/AnsiballZ_cloudformation_diff.py", line 107, in <module>
    _ansiballz_main()
  File "/Users/duffy/.ansible/tmp/ansible-tmp-1663685850.6367428-32076-118898947106338/AnsiballZ_cloudformation_diff.py", line 99, in _ansiballz_main
    invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)
  File "/Users/duffy/.ansible/tmp/ansible-tmp-1663685850.6367428-32076-118898947106338/AnsiballZ_cloudformation_diff.py", line 47, in invoke_module
    runpy.run_module(mod_name='ansible.modules.cloudformation_diff', init_globals=dict(_module_fqn='ansible.modules.cloudformation_diff', _modlib_path=modlib_path),
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/runpy.py", line 224, in run_module
    return _run_module_code(code, init_globals, run_name, mod_spec)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/runpy.py", line 96, in _run_module_code
    _run_code(code, mod_globals, init_globals,
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/var/folders/q3/bbn7n5hn4xdbkw68fy1pxhyw0000gn/T/ansible_cloudformation_diff_payload_eg0bs710/ansible_cloudformation_diff_payload.zip/ansible/modules/cloudformation_diff.py", line 590, in <module>
  File "/var/folders/q3/bbn7n5hn4xdbkw68fy1pxhyw0000gn/T/ansible_cloudformation_diff_payload_eg0bs710/ansible_cloudformation_diff_payload.zip/ansible/modules/cloudformation_diff.py", line 488, in main
AttributeError: 'str' object has no attribute 'decode'. Did you mean: 'encode'?```

I'm using macos, python3.10

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.