Skip to content

Commit

Permalink
fix cloud ID validation during cleanup in cucumber tests
Browse files Browse the repository at this point in the history
  • Loading branch information
luispresuelVenafi committed Jun 6, 2024
1 parent e437fc3 commit f7e1fd7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def cleanup_keystore(cloud_id = "")

def cleanup_google(cloud_id = "")
client = create_google_certificate_manager_client
if cloud_id
if cloud_id != ""
certificate_name = "projects/#{ENV['GCP_PROJECT']}/locations/#{ENV['GCP_REGION']}/certificates/#{cloud_id}"
else
certificate_name = "projects/#{ENV['GCP_PROJECT']}/locations/#{ENV['GCP_REGION']}/certificates/#{@cloud_id}"
Expand All @@ -137,7 +137,7 @@ def cleanup_google(cloud_id = "")

def cleanup_aws(cloud_id = "")
client = create_aws_certificate_manager_client
if cloud_id
if cloud_id != ""
certificate_arn = cloud_id
else
certificate_arn = @cloud_id
Expand Down

0 comments on commit f7e1fd7

Please sign in to comment.