- 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)
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): constraints. go
A [revision details]
M cmd/juju/
Index: [revision details] 20131119103655- 3r9zk5y8rhzy33l 3
=== 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-
+New revision: <email address hidden>
Index: cmd/juju/ constraints. go constraints. go' constraints. go 2013-11-05 00:55:25 +0000 constraints. go 2013-11-19 12:36:03 +0000
=== modified file 'cmd/juju/
--- cmd/juju/
+++ cmd/juju/
@@ -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