Code review comment for lp:~adeuring/juju-core/1251095

Revision history for this message
Abel Deuring (adeuring) wrote :

Reviewers: mp+195780_code.launchpad.net,

Message:
Please take a look.

Description:
fix the example in "juju set-constraints -h"

See LP bug 1251095: set-constrains example gives "error: malformed
constraint"

The example shown for "juju set-constraints -h" was wrong; the fix is
obvious.

https://code.launchpad.net/~adeuring/juju-core/1251095/+merge/195780

(do not edit description out of merge proposal)

Please review this at https://codereview.appspot.com/29000043/

Affected files (+4, -2 lines):
   A [revision details]
   M cmd/juju/constraints.go

Index: [revision details]
=== added file '[revision details]'
--- [revision details] 2012-01-01 00:00:00 +0000
+++ [revision details] 2012-01-01 00:00:00 +0000
@@ -0,0 +1,2 @@
+Old revision: tarmac-20131119103655-3r9zk5y8rhzy33l3
+New revision: <email address hidden>

Index: cmd/juju/constraints.go
=== modified file 'cmd/juju/constraints.go'
--- cmd/juju/constraints.go 2013-11-05 00:55:25 +0000
+++ cmd/juju/constraints.go 2013-11-19 12:36:03 +0000
@@ -37,8 +37,8 @@

  Examples:

- set-constraints mem=8G (all new machines in the
environment must have at least 8GB of RAM)
- set-constraints wordpress mem=4G (all new wordpress machines can
ignore the 8G constraint above, and require only 4G)
+ set-constraints mem=8G (all new machines in the
environment must have at least 8GB of RAM)
+ set-constraints --service wordpress mem=4G (all new wordpress
machines can ignore the 8G constraint above, and require only 4G)

  See Also:
     juju help constraints

« Back to merge proposal