Merge pull request #1071 in YUNIONIO/onecloud from ~QUXUAN/onecloud:hotfix/qx-storage-conflict-fix to release/2.4.0

* commit '378ba9bf04f885525094e57380c711960dadc4a3':
  解决冲突
This commit is contained in:
邱剑
2019-02-18 10:46:22 +08:00
+1 -1
View File
@@ -147,7 +147,7 @@ func (self *SStorage) AllowUpdateItem(ctx context.Context, userCred mcclient.Tok
}
func (self *SStorage) PostUpdate(ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, data jsonutils.JSONObject) {
self.SEnabledStatusStandaloneResourceBase.PostUpdate(ctx, userCred, query, data)
self.SStandaloneResourceBase.PostUpdate(ctx, userCred, query, data)
if data.Contains("cmtbound") {
hosts := self.GetAttachedHosts()