Cannot apply model-defaults in isomorphic manner

Bug #2023296 reported by Vitaly Antonenko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Harry Pidcock

Bug Description

One of our tests checks applying model-defaults in an isomorphic manner:

```
juju model-defaults "${BOOTSTRAPPED_CLOUD}" --format=yaml | juju model-defaults "${BOOTSTRAPPED_CLOUD}" --ignore-read-only-fields --file -
```

It looks like this commit breaks working with pipe inputs: https://github.com/juju/juju/commit/caa28090

We get the following error on output:
```
anvial@ubuntu-pc:~/Projects/juju-dev$ juju model-defaults lxd --format=yaml | juju model-defaults lxd --ignore-read-only-fields --file -
ERROR cannot use --file flag and get value simultaneously

```

We need to fix it to make our 3.1 CI green.

Tags: cli
Changed in juju:
status: New → Triaged
importance: Undecided → High
assignee: nobody → Jordan Barrett (barrettj12)
milestone: none → 3.1.3
tags: added: cli
Revision history for this message
Harry Pidcock (hpidcock) wrote :
Changed in juju:
assignee: Jordan Barrett (barrettj12) → Harry Pidcock (hpidcock)
status: Triaged → Fix Committed
Changed in juju:
status: Fix Committed → Fix Released
milestone: 3.1.3 → 3.1.5
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.