add missing check to not publish to SIG if config.SharedGalleryDestination.SigDestinationGalleryName is null

pull/7778/head
Amrita Dutta 7 years ago
parent 6504d3ae5c
commit 540c904fd4

@ -98,6 +98,10 @@ func (s *StepPublishToSharedImageGallery) publishToSig(ctx context.Context, miSi
}
func (s *StepPublishToSharedImageGallery) Run(ctx context.Context, stateBag multistep.StateBag) multistep.StepAction {
if !s.toSIG() {
return multistep.ActionContinue
}
s.say("Publishing to Shared Image Gallery ...")
var miSigPubSubscription = stateBag.Get(constants.ArmManagedImageSigPublishSubscription).(string)

Loading…
Cancel
Save