snappy config does not work from stdin
Bug #1472788 reported by
Michał Sawicz
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snappy |
Fix Released
|
Critical
|
Unassigned |
Bug Description
snappy config --help says:
"The configuration is a YAML file, provided in the specified file which can be "-" for stdin."
But:
$ snappy config ubuntu-core -
Just ignores the "-" and goes on displaying the config.
Changed in snappy: | |
status: | New → Triaged |
importance: | Undecided → Critical |
tags: | added: snappy-robustness |
tags: | removed: snappy-robustness |
To post a comment you must log in.
Apparently piping into the command works, it just doesn't wait for typing:
$ snappy config ubuntu-core localdomain
config:
ubuntu-core:
autopilot: false
timezone: UTC
hostname: localhost.
$ snappy config ubuntu-core - <(echo -e 'config:\n ubuntu-core:\n timezone: Europe/Berlin\n') localdomain
config:
ubuntu-core:
autopilot: false
timezone: Europe/Berlin
hostname: localhost.
Whether that's a bug, issue in the documentation, or PEBKAC, I'll leave to you.