Project

General

Profile

Actions

Bug #28469

closed

No validation for compute_public_ip attribute in cli

Added by Aditi Puntambekar over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
-
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Steps to reproduce:


hammer host create --name client7 --compute-resource-id 1\
--compute-attributes="resource_group=aditi-rg,vm_size=Standard_B2ms,\
username=azureuser,password=changeme123$,platform=Linux,\
script_command=touch /var/tmp/text.txt"\
--interface="*compute_public_ip=aditi*,compute_private_ip=false,\
compute_network=<id>" --location-id 2 --organization-id 1 --domain-id 1\
--architecture-id 1 --operatingsystem-id 1 --image-id 2

Actual Result:
Could not create host and defaults to None public ip and hence, no public IP is assigned.

Expected Result:
Shouldn't allow to create host with wrong type of value.

Actions #1

Updated by Aditi Puntambekar over 5 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman_azure_rm/pull/55 added
Actions #2

Updated by Aditi Puntambekar over 5 years ago

  • Status changed from Ready For Testing to Resolved
Actions #3

Updated by Aditi Puntambekar over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF