Project

General

Profile

Actions

Bug #28172

closed

Compute resource create with region does not has validation for invalid type regions

Added by Vijay Singh about 5 years ago. Updated almost 5 years ago.

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

Description

Compute resource create with region does not has validation for invalid type regions

i.e. a region could pass as "East_US", "EastUS", "East-US" however valid one is 'eastus'(lower case)

Steps:


 # hammer compute-resource create --name CLI_Test1 --organization-id 1 --location-id 2 --provider AzureRM --app-ident "your-app-id" --secret-key "your_key_details" --sub-id "your_sub_id" --tenant "your_tenat_id" --region "East-US" 
Compute resource created.

 # hammer compute-resource create --name CLI_Test2 --organization-id 1 --location-id 2 --provider AzureRM --app-ident "your-app-id" --secret-key "your_key_details" --sub-id "your_sub_id" --tenant "your_tenat_id" --region "EastUS" 
Compute resource created.

 # hammer compute-resource create --name CLI_Test3 --organization-id 1 --location-id 2 --provider AzureRM --app-ident "your-app-id" --secret-key "your_key_details" --sub-id "your_sub_id" --tenant "your_tenat_id" --region "East_US" 
Compute resource created.

 # hammer compute-resource create --name CLI_Test4 --organization-id 1 --location-id 2 --provider AzureRM --app-ident "your-app-id" --secret-key "your_key_details" --sub-id "your_sub_id" --tenant "your_tenat_id" --region "eastus" 
Compute resource created.


Related issues 2 (0 open2 closed)

Related to AzureRM - Feature #27405: CLI support for AzureRM Compute ResourceClosedAditi PuntambekarActions
Related to AzureRM - Tracker #28389: Bug fixes after refactoring to sdkClosedAditi Puntambekar

Actions
Actions

Also available in: Atom PDF