Skip to content

Commit

Permalink
Fixes #28469 - No validation for public ip in cli (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
apuntamb authored and ShimShtein committed Dec 10, 2019
1 parent 14a41fe commit 38e2f05
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ def create_nics(region, args = {})
NetworkModels::IPAllocationMethod::Dynamic
when 'None'
nil
else
raise RuntimeError, "Public IP value must be either 'Dynamic', 'Static' or 'None'"
end
if pub_ip_alloc.present?
public_ip_params = NetworkModels::PublicIPAddress.new.tap do |ip|
Expand Down Expand Up @@ -217,4 +219,4 @@ def create_vm_extension(region, args = {})
end
end
end
end
end

0 comments on commit 38e2f05

Please sign in to comment.