Skip to content

Commit

Permalink
Allow changing endpoint type when editing firewall rule
Browse files Browse the repository at this point in the history
Change-Id: I555c8358496732b09f908ff467900ca1318d5761
Closes-Bug: #1782985
(cherry picked from commit ba80f1c)
  • Loading branch information
IridiumOxide committed Jul 24, 2018
1 parent 1e8b56c commit fba436c
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -262,8 +262,8 @@ class Utils {
): FirewallRuleEndpointType {
val anyWorkload = type == EndpointType.AnyWorkload.value
val tagNames = if (type == EndpointType.Tag.value && tags != null) tags.map { tagToString(it) } else listOf()
val virtualNetworkFqn = virtualNetwork?.FQN
val addressGroupFqn = addressGroup?.FQN
val virtualNetworkFqn = if (type == EndpointType.VirtualNetwork.value) virtualNetwork?.FQN else null
val addressGroupFqn = if (type == EndpointType.AddressGroup.value) addressGroup?.FQN else null
return FirewallRuleEndpointType(null, virtualNetworkFqn, addressGroupFqn, tagNames, null, anyWorkload)
}

Expand Down

0 comments on commit fba436c

Please sign in to comment.