Issue #6760 has been reported by Paul Berry.
----------------------------------------
Bug #6760: Selecting a terminus for an indirection-based interface should be
possible using an option.
https://projects.puppetlabs.com/issues/6760
Author: Paul Berry
Status: Accepted
Priority: Normal
Assignee:
Category: interface
Target version: 2.6.x
Affected Puppet version:
Keywords:
Branch:
In the current implementation of interfaces, when invoking an indirector action
through the command-line you may specify the terminus using the "--from"
option, e.g.
puppet catalog find <name> --from yaml
However when invoking the interface action from within Ruby you must set the
terminus globally:
Puppet::Interface::Catalog.set_terminus :yaml
Puppet::Interface::Catalog.find(<name>)
This carries the risk that a user of the interface action will forget to reset
the terminus back to its original value. Also, it would be nice if we could
integrate the "--from" option into an options hash to the interface action (see
#6758), so that invoking the interface action from within Ruby would look
similar to invoking it from the command line:
Puppet::Interface::Catalog.find(<name>, :from => :yaml)
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.