Bug 1267956
| Summary: | RFE: use latest commit for ostree show if none specified | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Alexander Todorov <atodorov> |
| Component: | ostree | Assignee: | Colin Walters <walters> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | rawhide | CC: | atodorov, gscrivan, jkrieger, mbarnes, walters |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-01-27 14:42:37 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Alexander Todorov
2015-10-01 13:02:51 UTC
You can specify the branch name: # ostree show rhel-atomic-host/7/x86_64/standard Would that work for you? Defaulting to the latest commit on a booted ostree deployment of course can only work if you're actually booted into an ostree deployment. This won't work if you're on, say, a plain Fedora machine staging commits on a local ostree repo. And it violates the "ostree" vs "ostree admin" command partitioning. That said, if we considered this a restricted special case -- failing as it does now when not applicable -- then it could be a nice usability win. And similar defaults could apply to other non-admin commands like "ostree log", which I've typed many times myself forgetting the REF argument. It's a design decision for Colin, though. (In reply to Matthew Barnes from comment #2) > And it violates the "ostree" vs "ostree admin" command partitioning. This is indeed something that honestly is *very* confusing for administrators, and I think in retrospect I chose wrong. The default should have been `ostree fs` for the filesystem stuff, then `ostree` = `ostree admin`. Oh well. (This is of course leaving aside the whole rpm-ostree/atomic extra layers) Which speaking of, we can certainly add more verbs on either side for this. `atomic host show-commit` could do what you want. (In reply to Giuseppe Scrivano from comment #1) > You can specify the branch name: > > # ostree show rhel-atomic-host/7/x86_64/standard > > Would that work for you? Yes. |