Coder Social home page Coder Social logo

Comments (6)

tongpu avatar tongpu commented on August 16, 2024

I just had another look at the problem and I guess this should probably also be reported upstream. On the ConfigParser Documentation it is written that

Note that leading whitespace is removed from values.

This seems to be a common problem with ConfigParser, the people over at GitPython also seems to have stumbled over it in the past. A possible workaround for now would be something like this, where they locally rewrite readline to work around the issue within ConfigParser.

from ansible-modules-core.

kazh000 avatar kazh000 commented on August 16, 2024

ANSIBLE VERSION 2.0.2.0
Environment: Debian GNU/Linux 8 (jessie)
Problem of tabs is still present.
ini_file.py uses re.match('%s *=' % option, line) for searching option name and use only space as delimiter char.

from ansible-modules-core.

kazh000 avatar kazh000 commented on August 16, 2024

could you replace re.match('%s *=' % option, line) by re.match('%s( |\t)*=' % option, line) or re.match('%s\s*=' % option, line)

from ansible-modules-core.

tongpu avatar tongpu commented on August 16, 2024

@jimi-c I guess re.match('%s( |\t)*=' % option, line) would be preferred over re.match('%s( |\t)*=' % option, line). If this would be the way to go I could do a pull request for it.

from ansible-modules-core.

kal4l avatar kal4l commented on August 16, 2024

What is the fix version for this? I'm getting the issue on ansible version 2.1.1.0.

from ansible-modules-core.

developerinlondon avatar developerinlondon commented on August 16, 2024

and also on ansible 2.2 . really need a fix for this really.

from ansible-modules-core.

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.