bootstrap insists on a logfile
Bug #1050169 reported by
Steve McInerney
This bug report is a duplicate of:
Bug #1048710: Regression in argparse for Python 2.7, 3.2 and 3.3.
Edit
Remove
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyjuju |
New
|
Undecided
|
Unassigned |
Bug Description
Help implies that --logfile is optional; it's not, is mandatory.
steve@dogmatix:~$ juju bootstrap
usage: juju [-h] [--verbose] [--log-file LOG_FILE] ...
....
juju: error: argument --log-file/-l: invalid FileType('a') value: <open file '<stderr>', mode 'w' at 0xb75330d0>
steve@dogmatix:~$ juju -l /tmp/juju.log bootstrap
steve@dogmatix:~$
steve@dogmatix:~$ apt-cache policy juju
juju:
Installed: 0.5.1+bzr574-
Presumably related:
[- -format FORMAT]
[scope [scope ...]]
steve@dogmatix:~$ juju status
usage: juju status [-h] [--environment ENVIRONMENT] [--output OUTPUT]
juju status: error: argument --output: invalid FileType('w') value: <open file '<stdout>', mode 'w' at 0xb7545078>
steve@dogmatix:~$ juju status --output /tmp/juju.out
usage: juju [-h] [--verbose] [--log-file LOG_FILE] ...
....
juju: error: argument --log-file/-l: invalid FileType('a') value: <open file '<stderr>', mode 'w' at 0xb74e20d0>
steve@dogmatix:~$ juju --log-file /tmp/juju.log status --output /tmp/juju.out
^^ seems to be the magic incantation to make it work.