Repeating constraints does not combine values

Bug #2049439 reported by Peter Jose De Sousa
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Triaged
Medium
Jack Shaw

Bug Description

Hello

When repeating --constraints arguments during a machine bootstrap, the preceding constraint argument values are lost whilst the last argument is preserved.

This is misleading as no error or warning is given to the user to make them aware.

This bug is to document this issue

Thanks,

Peter

Tags: bitesize
Changed in juju:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Joseph Phillips (manadart) wrote :

This might be as simple as using FlagSet.Var over FlagSet.StringVar as we already do for config, which works for multiple-specification as attempted for constraints here.

Changed in juju:
assignee: nobody → Jack Shaw (jack-shaw)
milestone: none → 3.1.8
Changed in juju:
milestone: 3.1.8 → 3.1.9
Revision history for this message
John A Meinel (jameinel) wrote :

So you should be able to supply space separated list of constraints, eg:

juju bootstrap --constraints "a=b c=d"

We can look to support multiple arguments so that:
juju bootstrap --constraints "a=b" --constraints "b=c"

also works, but you already *can* supply multiple constraints simultaneously.

tags: added: bitesize
Revision history for this message
Amanda Hager Lopes de Andrade Katz (amandahla) wrote :

Can I give it a try to this issue?

Revision history for this message
Amanda Hager Lopes de Andrade Katz (amandahla) wrote :
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.