Coder Social home page Coder Social logo

Comments (6)

luken avatar luken commented on August 23, 2024

$ cat /tmp/debops_ansible_version_path_handling.patch

--- debops.orig	2018-01-15 13:05:04.000000000 -0700
+++ debops	2018-01-15 13:24:30.000000000 -0700
@@ -106,7 +106,7 @@
         plugin_type = plugin_type+"_plugins"
         defaults[plugin_type] = PATHSEP.join(custom_paths(plugin_type))

-        if ansible.__version__ >= "1.7":
+        if ansible.__version__ >= "1.7" and ansible.__version__ < "2.0":
             # work around a bug obviously introduced in 1.7, see
             # https://github.com/ansible/ansible/issues/8555
             if ' ' in defaults[plugin_type]:

from debops-tools.

drybjed avatar drybjed commented on August 23, 2024

Thanks for the bug report! Unfortunately I don't have a macOS host handy to test this... Could you check if your fix works with the version currently present in the debops/debops repository?

If not, that's fine - I can apply the fix and it will probably work. I plan to release a new version with Python 3 support in a few days.

from debops-tools.

luken avatar luken commented on August 23, 2024

Is this good enough of a test?

$ PYTHON_PATH=../debops/lib/debops-tools/debops ; rm ansible.cfg && ../debops/lib/debops-tools/bin/debops -l ans.ap

It still generates the same ansible.cfg with the extra quote characters that ansible chokes on.

from debops-tools.

drybjed avatar drybjed commented on August 23, 2024

And it works fine with your fix?

from debops-tools.

luken avatar luken commented on August 23, 2024

Testing...

$ patch < /tmp/debops_ansible_version_path_handling.patch
patching file debops
Hunk #1 succeeded at 119 (offset 13 lines).

With patched version run with same command above.

  • Verified not extra quotes in paths
  • Verified 'debops -l testhost' completed

Also, the python path above was likely not right. Re-ran both cases with PYTHON_PATH=../debops/lib/debops-tools

Same results, unpatched fails, patched works

from debops-tools.

drybjed avatar drybjed commented on August 23, 2024

@luken Thanks for checking this. In that case I'm gonna apply your patch, it should be fixed in the next release.

from debops-tools.

Related Issues (20)

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.