Skip to content
This repository has been archived by the owner on Nov 3, 2022. It is now read-only.

fix for Azure lifecycle policy #103

Merged
merged 1 commit into from
Mar 2, 2020
Merged

fix for Azure lifecycle policy #103

merged 1 commit into from
Mar 2, 2020

Conversation

kengou
Copy link

@kengou kengou commented Mar 2, 2020

fixes #85 by removing the leading / from the file name during upload

azurefile := strings.TrimLeft(file, "!/")
upload := fmt.Sprintf("az storage blob upload -c '%v' --file '%v' --name '%v' --connection-string '%v'",
		plan.Azure.ContainerName, file, azurefile, plan.Azure.ConnectionString)

@kengou kengou changed the title fix stefanprodan/mgob#85 Azure lifecycle policy fix Azure lifecycle policy Mar 2, 2020
@kengou kengou changed the title fix Azure lifecycle policy fix for Azure lifecycle policy Mar 2, 2020
Copy link
Owner

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Thanks @kengou

@stefanprodan stefanprodan merged commit 1a21f3b into stefanprodan:master Mar 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Azure blob storage filename issue
2 participants