Bug #6760
Selecting a terminus for an indirection-based interface should be possible using an option.
| Status: | Closed | Start date: | 03/18/2011 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | % Done: | 0% |
||
| Category: | Faces | |||
| Target version: | 2.7.0 | |||
| Affected Puppet version: | Branch: | |||
| Keywords: | ||||
| Votes: | 0 |
Description
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)
History
Updated by Paul Berry about 1 year ago
- Category changed from 21 to Faces
Updated by Daniel Pittman about 1 year ago
- Status changed from Accepted to Closed
- Assignee set to Daniel Pittman
This has been implemented.
Updated by James Turnbull about 1 year ago
- Target version changed from 2.6.x to 2.7.x
Updated by James Turnbull 11 months ago
- Target version changed from 2.7.x to 2.7.0