You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: framework/extensions/src/main/java/org/apache/cloudstack/framework/extensions/manager/ExtensionsManagerImpl.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -592,15 +592,15 @@ public Extension updateExtension(UpdateExtensionCmd cmd) {
592
592
thrownewInvalidParameterValueException("Failed to find the extension");
593
593
}
594
594
booleanupdateNeeded = false;
595
-
if (description != null) {
595
+
if (description != null && !description.equals(extensionVO.getDescription())) {
596
596
extensionVO.setDescription(description);
597
597
updateNeeded = true;
598
598
if (!extensionDao.update(id, extensionVO)) {
599
599
thrownewCloudRuntimeException(String.format("Failed to updated the extension: %s",
600
600
extensionVO.getName()));
601
601
}
602
602
}
603
-
if (StringUtils.isNotBlank(stateStr)) {
603
+
if (StringUtils.isNotBlank(stateStr) && !stateStr.equalsIgnoreCase(extensionVO.getState().name())) {
0 commit comments