Code Monkey home page Code Monkey logo

Comments (11)

adrienthebo avatar adrienthebo commented on August 21, 2024

Yep, I need to have better handling of feature detection. There's no good way to say "this issue is accepted," so... this issue is accepted. :)

I'm wrapping up some work on puppet-network and then I should be able to hop to this ticket shortly.

from r10k.

codec avatar codec commented on August 21, 2024

Oh, I was just looking to fix this. Unfortunately this seems to be an issue with puppet as it returns 0 no matter what the face does. :( (see https://github.com/puppetlabs/puppet/blob/master/lib/puppet/util/command_line.rb)

from r10k.

codec avatar codec commented on August 21, 2024

There's an upstream bug for this at http://projects.puppetlabs.com/issues/15642

from r10k.

adrienthebo avatar adrienthebo commented on August 21, 2024

I'm going to target this bug at 1.1.0 so that 1.0.0 can get into RC.

from r10k.

adrienthebo avatar adrienthebo commented on August 21, 2024

1.1.0 has been blocked for a while, so I'm going to untarget this issue in the naive hope that 1.1.0 will get out the door sooner, and I can come back to this then.

from r10k.

rnelson0 avatar rnelson0 commented on August 21, 2024

Adrien, bump for status, I think it can be closed.

from r10k.

adrienthebo avatar adrienthebo commented on August 21, 2024

This is still an issue, we run entirely on hopes and dreams when calling puppet module $command. I think that this can be closed out when #1 is implemented but if that doesn't get done then we need to make sure that the puppet executable is present and the puppet module subcommand is functional.

from r10k.

rnelson0 avatar rnelson0 commented on August 21, 2024

@adrienthebo perhaps checking for an exit code of 1 versus 127 will be helpful. For example, puppet module vs the not-present pupppet module:

[rnelson0@puppet ~]$ puppet module
Error: 'module' has no default action.  See `puppet help module`.
[rnelson0@puppet ~]$ echo $?
1
[rnelson0@puppet ~]$ pupppet module
-bash: pupppet: command not found
[rnelson0@puppet ~]$ echo $?
127

from r10k.

adrienthebo avatar adrienthebo commented on August 21, 2024

The original case the problems was that of this was a version of puppet that did not include the pmt, the exit code would be zero. I could just drop support for 2.7 and be done with it though.

from r10k.

rnelson0 avatar rnelson0 commented on August 21, 2024

I think that gives you three values for the return code of "puppet module":
0 - puppet module isn't there at all, and puppet returns 0 for invalid faces
1 - puppet module exists but it returns a 1 when not provided a valid
command
127 - she'll can't find puppet at all

I would think dropping 2.7 is probably okay for most but I believe this
would be backwards compatible.

On Saturday, October 18, 2014, Adrien Thebo [email protected]
wrote:

The original case the problems was that of this was a version of puppet
that did not include the pmt, the exit code would be zero. I could just
drop support for 2.7 and be done with it though.

β€”
Reply to this email directly or view it on GitHub
#8 (comment).

Rob Nelson
[email protected]

from r10k.

adrienthebo avatar adrienthebo commented on August 21, 2024

Since #1 is closed, this issue is no longer applicable.

from r10k.

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.