[2.0.0.4472] error: flag provided but not defined: --refresh

Bug #1632699 reported by Larry Michel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
Medium
Anastasia

Bug Description

When I do juju controllers, it tells me to do a --refresh but that flag is not defined:

$ juju controllers
Use --refresh to see the latest information.

Controller Model User Access Cloud/Region Models Machines HA Version
lmic-vsphere-rc2 default admin superuser vsphere/dc0 2 1 none 2.0-rc2
$ juju --refresh
error: flag provided but not defined: --refresh

$ juju --version
2.0.0.4472-xenial-amd64

Tags: oil oil-2.0
Larry Michel (lmic)
description: updated
Revision history for this message
Anastasia (anastasia-macmood) wrote :

--refresh is a flag on "juju controllers" command. Try running "juju controllers --refresh" \o/

$ juju help controllers
Usage: juju controllers [options]

Summary:
Lists all controllers.

Options:
-B, --no-browser-login (= false)
    Do not use web browser for authentication
--format (= tabular)
    Specify output format (json|tabular|yaml)
-o, --output (= "")
    Specify an output file
--refresh (= false)
    Connect to each controller to download the latest details

Details:
The output format may be selected with the '--format' option. In the
default tabular output, the current controller is marked with an asterisk.

Examples:
    juju controllers
    juju controllers --format json --output ~/tmp/controllers.json

See also:
    models
    show-controller

Aliases: list-controllers

Changed in juju:
status: New → Invalid
Revision history for this message
Anastasia (anastasia-macmood) wrote :

I have proposed a PR to make it a little bit more obvious which command --refresh flag belongs to \o/

I believe it'll improve user experience :D

https://github.com/juju/juju/pull/6457

Changed in juju:
status: Invalid → In Progress
importance: Undecided → Medium
assignee: nobody → Anastasia (anastasia-macmood)
milestone: none → 2.0.1
Changed in juju:
status: In Progress → Fix Committed
Curtis Hovey (sinzui)
Changed in juju:
status: Fix Committed → Fix Released
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.