Skip to content
Permalink
Browse files
JCLOUDS-1584 : Deployment API fails when ARM Template deploys for cre…
…ating Azure VM
  • Loading branch information
Rajani-cloud authored and gaul committed Sep 4, 2021
1 parent 0b68e8a commit 8167513c35bcb1c4ffaf34c9529bfcba14bb07ba
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
@@ -186,7 +186,7 @@ public abstract static class DeploymentProperties implements Provisionable {
public abstract ContentLink templateLink();

@Nullable
public abstract Map<String, Value> parameters();
public abstract Map<String, JsonBall> parameters();

@Nullable
public abstract ContentLink parametersLink();
@@ -209,7 +209,7 @@ public static DeploymentProperties create(final String provisioningState,
final List<Dependency> dependencies,
final Map<String, JsonBall> template,
final ContentLink templateLink,
final Map<String, Value> parameters,
final Map<String, JsonBall> parameters,
final ContentLink parametersLink,
final String mode,
final String duration,
@@ -222,7 +222,7 @@ public static DeploymentProperties create(final String provisioningState,
dependencies == null ? null : copyOf(dependencies),
template == null ? ImmutableMap.<String, JsonBall>builder().build() : ImmutableMap.copyOf(template),
templateLink,
parameters == null ? ImmutableMap.<String, Value>builder().build() : ImmutableMap.copyOf(parameters),
parameters == null ? ImmutableMap.<String, JsonBall>builder().build() : ImmutableMap.copyOf(parameters),
parametersLink,
mode,
duration,
@@ -16,6 +16,7 @@
*/
package org.jclouds.azurecompute.arm.domain;

import org.jclouds.javax.annotation.Nullable;
import org.jclouds.json.SerializedNames;

import com.google.auto.value.AutoValue;
@@ -31,10 +32,10 @@ public abstract class Value {
/**
* The name of the Value
*/
public abstract String value();
public abstract @Nullable String value();

@SerializedNames({"type", "value"})
public static Value create(final String type, final String value) {
public static Value create(final String type, @Nullable final String value) {

return new AutoValue_Value(type, value);
}

0 comments on commit 8167513

Please sign in to comment.