Skip to content

Commit 8331b34

Browse files
committed
Do not hardcode storage account name
1 parent 145ee6e commit 8331b34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/stemcell/builder/azure.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def parse_disk_uri(line)
8181

8282
def create_signed_url(url)
8383
one_month_from_now = Date.today + 30
84-
output, status = Open3.capture2e('az', 'storage', 'blob', 'generate-sas', '--blob-url', url, '--expiry', "#{one_month_from_now.to_s}T00:00:00Z", '--permissions', 'r', '--account-name', 'unpublishedpremiumstore', '--full-uri', '-o', 'tsv', '--only-show-errors')
84+
output, status = Open3.capture2e('az', 'storage', 'blob', 'generate-sas', '--blob-url', url, '--expiry', "#{one_month_from_now.to_s}T00:00:00Z", '--permissions', 'r', '--account-name', @storage_account, '--full-uri', '-o', 'tsv', '--only-show-errors')
8585
if !status.success?
8686
raise "Unable to sign URL #{url}:\n#{output}"
8787
end

0 commit comments

Comments
 (0)