fix bug in step_publish w.r.t managed image RG
This commit is contained in:
parent
963336d421
commit
994dca5f78
|
@ -97,7 +97,7 @@ func (s *StepPublishToSharedImageGallery) Run(ctx context.Context, stateBag mult
|
||||||
var location = stateBag.Get(constants.ArmLocation).(string)
|
var location = stateBag.Get(constants.ArmLocation).(string)
|
||||||
var tags = stateBag.Get(constants.ArmTags).(map[string]*string)
|
var tags = stateBag.Get(constants.ArmTags).(map[string]*string)
|
||||||
var miSigReplicationRegions = stateBag.Get(constants.ArmManagedImageSharedGalleryReplicationRegions).([]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 targetManagedImageName = stateBag.Get(constants.ArmManagedImageName).(string)
|
||||||
var managedImageSubscription = stateBag.Get(constants.ArmManagedImageSubscription).(string)
|
var managedImageSubscription = stateBag.Get(constants.ArmManagedImageSubscription).(string)
|
||||||
var mdiID = fmt.Sprintf("/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Compute/images/%s", managedImageSubscription, targetManagedImageResourceGroupName, targetManagedImageName)
|
var mdiID = fmt.Sprintf("/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Compute/images/%s", managedImageSubscription, targetManagedImageResourceGroupName, targetManagedImageName)
|
||||||
|
|
Loading…
Reference in New Issue