2013/2/12 Guido Trotter <[email protected]>:
> On Thu, Feb 7, 2013 at 2:58 PM, Michael Hanselmann <[email protected]> wrote:
>> In some scenarios it can be useful to add more arguments to “gnt-cluster
>> init”, such as “--no-drbd-storage”, if DRBD is not installed.
>
> LGTM (either in master or devel-2.7)
I realized my code would break if the “cluster-init-args“
configuration key is not set. Interdiff:
--- a/qa/qa_cluster.py
+++ b/qa/qa_cluster.py
@@ -209,7 +209,9 @@ def TestClusterInit(rapi_user, rapi_secret):
e_s = False
qa_config.SetExclusiveStorage(e_s)
- cmd.extend(qa_config.get("cluster-init-args"))
+ extra_args = qa_config.get("cluster-init-args")
+ if extra_args:
+ cmd.extend(extra_args)
cmd.append(qa_config.get("name"))
Michael