Merge pull request #1071 from wanyaoqi/bugfix/wyq/fix-notify

glance: add normal notofy
This commit is contained in:
yunion-ci-robot
2019-06-05 10:32:52 +08:00
committed by GitHub
+1
View File
@@ -62,6 +62,7 @@ func (self *ImageConvertTask) OnInit(ctx context.Context, obj db.IStandaloneMode
kwargs.Set("os_type", jsonutils.NewString(osType.Value))
}
notifyclient.SystemNotify(notify.NotifyPriorityNormal, notifyclient.IMAGE_ACTIVED, kwargs)
notifyclient.NotifyImportant(self.UserCred.GetUserId(), false, notifyclient.IMAGE_ACTIVED, kwargs)
}
return nil, err
})