GithubHelp home page GithubHelp logo

Comments (9)

fboender avatar fboender commented on July 24, 2024

Hey Jeff!

Thanks for the bug report!

Groups of groups are supported in the latest version of the Git repo. There is no package with that fix yet. Your use-case will probably still fail though, since I did not anticipate that a group "lb:children" would also count as a group called "lb". I will fix this as soon as possible.

from ansible-cmdb.

coryrwagner avatar coryrwagner commented on July 24, 2024

I'm also seeing KeyError errors when trying to parse groups of groups, with the latest code from the repo.

from ansible-cmdb.

n2aws avatar n2aws commented on July 24, 2024

Ferry,

Thanks for the fast reply.

I'm using the version from master, and the groups of groups work as
advertised, however it was the particular use-case I mentioned that was
failing. I should have clarified in the issue report that the bug was
being filed against master, and not the 0.3.deb version.

Thanks!

On Wed, Aug 19, 2015 at 5:26 PM, Ferry Boender [email protected]
wrote:

Hey Jeff!

Thanks for the bug report!

Groups of groups are supported in the latest version of the Git repo.
There is no package with that fix yet. Your use-case will probably still
fail though, since I did not anticipate that a group "lb:children" would
also count as a group called "lb". I will fix this as soon as possible.


Reply to this email directly or view it on GitHub
#16 (comment)
.

Jeff Palmer
https://PalmerIT.net

from ansible-cmdb.

coryrwagner avatar coryrwagner commented on July 24, 2024

I'm still seeing KeyError errors when trying to parse groups of groups, with the latest trunk code from the repo.

Example:

[sftp-all:children]
sftp-product1
sftp-product2

[sftp-product1:children]
host1
host3

[sftp-product1:children]
hosta
hostd

It will complain about sftp-product1.

from ansible-cmdb.

fboender avatar fboender commented on July 24, 2024

Hey Cory!

Yes, I'm aware of this problem! The problem is with the fact that "sftp-product1:children" is itself also a group called "sftp-product1". I did not anticipate this. It means that children groups are basically recursive and I have to do a rewrite of the way I'm handling children groups. I'm planning on fixing this tomorrow.

from ansible-cmdb.

fboender avatar fboender commented on July 24, 2024

Hi Jeff!

I've rewritten the inventory parsing logic and committed it. (It took a bit to find a clean way of doing it). Could you check to see if it's handling your inventory properly now?

Thanks!

from ansible-cmdb.

coryrwagner avatar coryrwagner commented on July 24, 2024

I can confirm that this change fixed the issues that I was having with nested groups.

from ansible-cmdb.

fboender avatar fboender commented on July 24, 2024

That's great to hear Cory! Thank you for verifying the fix. I'm going to release a new version with packages soon, as this is a rather important bugfix.

from ansible-cmdb.

n2aws avatar n2aws commented on July 24, 2024

Ferry,

I was just able to confirm it works properly on my unmodified inventory directory too.

from ansible-cmdb.

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.