Skip to content

Commit 23b7d93

Browse files
committed
update extension fix
Signed-off-by: Abhishek Kumar <[email protected]>
1 parent 2bf6690 commit 23b7d93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

framework/extensions/src/main/java/org/apache/cloudstack/framework/extensions/manager/ExtensionsManagerImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -592,15 +592,15 @@ public Extension updateExtension(UpdateExtensionCmd cmd) {
592592
throw new InvalidParameterValueException("Failed to find the extension");
593593
}
594594
boolean updateNeeded = false;
595-
if (description != null) {
595+
if (description != null && !description.equals(extensionVO.getDescription())) {
596596
extensionVO.setDescription(description);
597597
updateNeeded = true;
598598
if (!extensionDao.update(id, extensionVO)) {
599599
throw new CloudRuntimeException(String.format("Failed to updated the extension: %s",
600600
extensionVO.getName()));
601601
}
602602
}
603-
if (StringUtils.isNotBlank(stateStr)) {
603+
if (StringUtils.isNotBlank(stateStr) && !stateStr.equalsIgnoreCase(extensionVO.getState().name())) {
604604
try {
605605
Extension.State state = Extension.State.valueOf(stateStr);
606606
extensionVO.setState(state);

0 commit comments

Comments
 (0)