Contradictory usage instructions for "mojo project-destroy"

Bug #1932195 reported by Daniel Manrique
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mojo: Continuous Delivery for Juju
Confirmed
Medium
Unassigned

Bug Description

$ mojo project-destroy minispec2
2021-06-16 19:30:28 [WARNING] Removing $JUJU_REPOSITORY from the environment.
2021-06-16 19:30:28 [INFO] Destroying project: minispec2, series: xenial
2021-06-16 19:30:28 [ERROR] This sub-command, project-destroy, must be run as root
# OK let's run it as root.
$ sudo mojo project-destroy minispec2
This should not be run as root, exiting.
Possibly use --break-everything option if you are really sure!

¯\_ (ツ)_/¯

(I can certainly use with --break-everything, but mojo shouldn't tell me to run as root and then tell me NOT to run as root).

Daniel Manrique (roadmr)
summary: - Contradictory usage instructions for "mojo destroy"
+ Contradictory usage instructions for "mojo project-destroy"
Tom Haddon (mthaddon)
Changed in mojo:
status: New → Confirmed
importance: Undecided → Medium
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.