File tree 2 files changed +5
-6
lines changed
src/main/java/com/microsoft/azure/vmagent/builders
2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -14,12 +14,12 @@ public class AzureVMTemplateBuilder extends AzureVMTemplateFluent<AzureVMTemplat
14
14
15
15
public AzureVMTemplateBuilder () {
16
16
this .fluent = this ;
17
+ fluent .withMaxVirtualMachinesLimit ("10" );
17
18
}
18
19
19
20
public AzureVMTemplateBuilder (AzureVMAgentTemplate template ) {
20
21
this .fluent = this ;
21
22
fluent .withName (template .getTemplateName ());
22
- fluent .withMaxVirtualMachinesLimit (template .getMaxVirtualMachinesLimit ());
23
23
fluent .withDescription (template .getTemplateDesc ());
24
24
fluent .withLabels (template .getLabels ());
25
25
fluent .withLocation (template .getLocation ());
@@ -54,7 +54,6 @@ public AzureVMTemplateBuilder(AzureVMTemplateFluent<?> fluent) {
54
54
public AzureVMTemplateBuilder (AzureVMTemplateFluent <?> fluent , AzureVMAgentTemplate template ) {
55
55
this .fluent = fluent ;
56
56
fluent .withName (template .getTemplateName ());
57
- fluent .withMaxVirtualMachinesLimit (template .getMaxVirtualMachinesLimit ());
58
57
fluent .withDescription (template .getTemplateDesc ());
59
58
fluent .withLabels (template .getLabels ());
60
59
fluent .withLocation (template .getLocation ());
Original file line number Diff line number Diff line change 12
12
13
13
public class AzureVMTemplateFluent <T extends AzureVMTemplateFluent <T >> {
14
14
15
- private int maxVirtualMachinesLimit ;
15
+ private String maxVirtualMachinesLimit ;
16
16
17
17
private String name ;
18
18
@@ -59,7 +59,7 @@ public class AzureVMTemplateFluent<T extends AzureVMTemplateFluent<T>> {
59
59
private List <AzureTagPair > cloudTags ;
60
60
61
61
public AzureVMTemplateFluent () {
62
- maxVirtualMachinesLimit = 10 ;
62
+ maxVirtualMachinesLimit = "10" ;
63
63
location = "Japan West" ;
64
64
virtualMachineSize = "Standard_A0" ;
65
65
storageAccountType = "Standard_LRS" ;
@@ -76,7 +76,7 @@ public AzureVMTemplateFluent() {
76
76
}
77
77
78
78
//CHECKSTYLE:OFF
79
- public T withMaxVirtualMachinesLimit (int maxVirtualMachinesLimit ) {
79
+ public T withMaxVirtualMachinesLimit (String maxVirtualMachinesLimit ) {
80
80
this .maxVirtualMachinesLimit = maxVirtualMachinesLimit ;
81
81
return (T ) this ;
82
82
}
@@ -216,7 +216,7 @@ public T withAdminCredential(String credentialsId) {
216
216
}
217
217
//CHECKSTYLE:ON
218
218
219
- public int getMaxVirtualMachinesLimit () {
219
+ public String getMaxVirtualMachinesLimit () {
220
220
return maxVirtualMachinesLimit ;
221
221
}
222
222
You can’t perform that action at this time.
0 commit comments