@@ -54,8 +54,8 @@ public class ClusterStartMojo extends AbstractInstallMojo {
54
54
* Which VM Driver do you wish to use such as
55
55
* <code>hyperv</code>, <code>xhyve</code>, <code>kvm</code>, <code>virtualbox</code>, <code>vmwarefusion</code>
56
56
*/
57
- @ Parameter (property = "fabric8.vm .driver" )
58
- private String vmDriver ;
57
+ @ Parameter (property = "fabric8.cluster .driver" )
58
+ private String clusterDriver ;
59
59
60
60
61
61
@ Override
@@ -64,13 +64,11 @@ public void executeInternal() throws MojoExecutionException, MojoFailureExceptio
64
64
65
65
ArrayList <String > arguments = new ArrayList <>();
66
66
arguments .add ("start" );
67
- if (Strings .isNotBlank (clusterKind )) {
68
- if (isMinishift ()) {
69
- arguments .add ("--minishift" );
70
- } else {
71
- // lets assume its valid and let gofabric8 fail
72
- arguments .add ("--" + clusterKind );
73
- }
67
+ if (isMinishift ()) {
68
+ arguments .add ("--minishift" );
69
+ } else if (Strings .isNotBlank (clusterKind )) {
70
+ // lets assume its valid and let gofabric8 fail
71
+ arguments .add ("--" + clusterKind );
74
72
}
75
73
if (!clusterApp .equals ("fabric8" ) && !clusterApp .equals ("platform" )) {
76
74
arguments .add ("--" + clusterApp );
@@ -79,9 +77,9 @@ public void executeInternal() throws MojoExecutionException, MojoFailureExceptio
79
77
// TODO add --app= CLI argument when gofabric8 start supports it
80
78
// see https://github.com/fabric8io/gofabric8/issues/224
81
79
}
82
- if (Strings .isNotBlank (vmDriver )) {
80
+ if (Strings .isNotBlank (clusterDriver )) {
83
81
arguments .add ("--vm-driver" );
84
- arguments .add (vmDriver );
82
+ arguments .add (clusterDriver );
85
83
}
86
84
if (Strings .isNotBlank (clusterCPUs )) {
87
85
arguments .add ("--cpus" );
0 commit comments