fix bug in step_publish w.r.t managed image RG

This commit is contained in:
Amrita Dutta 2019-06-19 06:53:20 +00:00
parent 963336d421
commit 994dca5f78
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ func (s *StepPublishToSharedImageGallery) Run(ctx context.Context, stateBag mult
var location = stateBag.Get(constants.ArmLocation).(string)
var tags = stateBag.Get(constants.ArmTags).(map[string]*string)
var miSigReplicationRegions = stateBag.Get(constants.ArmManagedImageSharedGalleryReplicationRegions).([]string)
var targetManagedImageResourceGroupName = stateBag.Get(constants.ArmLocation).(string)
var targetManagedImageResourceGroupName = stateBag.Get(constants.ArmManagedImageResourceGroupName).(string)
var targetManagedImageName = stateBag.Get(constants.ArmManagedImageName).(string)
var managedImageSubscription = stateBag.Get(constants.ArmManagedImageSubscription).(string)
var mdiID = fmt.Sprintf("/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Compute/images/%s", managedImageSubscription, targetManagedImageResourceGroupName, targetManagedImageName)