Skip to content

Commit 0c83842

Browse files
committed
fix updateconfiguration response scope
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
1 parent 830044d commit 0c83842

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

api/src/main/java/org/apache/cloudstack/api/command/admin/config/UpdateCfgCmd.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
import org.apache.cloudstack.api.response.StoragePoolResponse;
3434
import org.apache.cloudstack.api.response.ZoneResponse;
3535
import org.apache.cloudstack.config.Configuration;
36+
import org.apache.cloudstack.framework.config.ConfigKey;
3637
import org.apache.commons.lang3.StringUtils;
3738

3839
import com.cloud.user.Account;
@@ -203,6 +204,9 @@ public ConfigurationResponse setResponseScopes(ConfigurationResponse response) {
203204
if (getDomainId() != null) {
204205
response.setScope("domain");
205206
}
207+
if (getManagementServerId() != null) {
208+
response.setScope(ConfigKey.Scope.ManagementServer.name().toLowerCase());
209+
}
206210
return response;
207211
}
208212
}

0 commit comments

Comments
 (0)