Skip to content

Commit 7f55790

Browse files
authored
Merge branch 'main' into ghi10752-configCleanup
2 parents 826a7b9 + b7a834b commit 7f55790

295 files changed

Lines changed: 1841 additions & 748 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.asf.yaml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ github:
5858
- GaOrtiga
5959
- bhouse-nexthop
6060
- Dogface2k
61+
- prashanthr2
6162

6263
rulesets:
6364
- name: "Default Branch Protection"
@@ -73,7 +74,7 @@ github:
7374

7475
copilot_code_review:
7576
enabled: true
76-
review_drafts: true
77+
review_drafts: false
7778
review_on_push: true
7879

7980
notifications:

‎.github/linters/codespell.txt‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,8 @@ environmnet
184184
equivalant
185185
erro
186186
erronous
187+
errorprone
188+
everthing
187189
everytime
188190
excute
189191
execept

‎.github/workflows/rat.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
uses: ./.github/actions/install-nonoss
4242
- name: RAT licence checks
4343
run: |
44-
mvn -P developer,systemvm -Dsimulator -Dnoredist -pl . org.apache.rat:apache-rat-plugin:0.12:check
44+
mvn -P developer,systemvm -Dsimulator -Dnoredist -pl . org.apache.rat:apache-rat-plugin:0.18:check
4545
- name: Rat Report
4646
if: always()
4747
run: |

‎agent/pom.xml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<parent>
2525
<groupId>org.apache.cloudstack</groupId>
2626
<artifactId>cloudstack</artifactId>
27-
<version>4.23.0.0-SNAPSHOT</version>
27+
<version>4.24.0.0-SNAPSHOT</version>
2828
</parent>
2929
<dependencies>
3030
<dependency>

‎agent/src/main/java/com/cloud/agent/mockvm/MockVmMgr.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ public void freeVncPort(int port) {
249249
public MockVm createVmFromSpec(VirtualMachineTO vmSpec) {
250250
String vmName = vmSpec.getName();
251251
long ramSize = vmSpec.getMinRam();
252-
int utilizationPercent = randSeed.nextInt() % 100;
252+
int utilizationPercent = randSeed.nextInt(100);
253253
MockVm vm = null;
254254

255255
synchronized (this) {

‎api/pom.xml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<parent>
2525
<groupId>org.apache.cloudstack</groupId>
2626
<artifactId>cloudstack</artifactId>
27-
<version>4.23.0.0-SNAPSHOT</version>
27+
<version>4.24.0.0-SNAPSHOT</version>
2828
</parent>
2929
<dependencies>
3030
<dependency>

‎api/src/main/java/com/cloud/vm/VirtualMachineProfile.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ public static class Param {
7979
public static final Param PreserveNics = new Param("PreserveNics");
8080
public static final Param ConsiderLastHost = new Param("ConsiderLastHost");
8181
public static final Param ReturnAfterVolumePrepare = new Param("ReturnAfterVolumePrepare");
82+
public static final Param ResetPasswordOnRestore = new Param("ResetPasswordOnRestore");
8283

8384
private String name;
8485

‎api/src/main/java/org/apache/cloudstack/api/ApiConstants.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,7 @@ public class ApiConstants {
470470
public static final String CURRENT_PASSWORD = "currentpassword";
471471
public static final String SHOULD_UPDATE_PASSWORD = "update_passwd_on_host";
472472
public static final String PASSWORD_ENABLED = "passwordenabled";
473+
public static final String RESET_PASSWORD = "resetpassword";
473474
public static final String SSHKEY_ENABLED = "sshkeyenabled";
474475
public static final String PATH = "path";
475476
public static final String PATH_READY = "pathready";

‎api/src/main/java/org/apache/cloudstack/api/command/admin/backup/UpdateBackupOfferingCmd.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ public Boolean getAllowUserDrivenBackups() {
9595
public void execute() {
9696
try {
9797
if (StringUtils.isAllEmpty(getName(), getDescription()) && getAllowUserDrivenBackups() == null && CollectionUtils.isEmpty(getDomainIds())) {
98-
throw new InvalidParameterValueException(String.format("Can't update Backup Offering [id: %s] because there are no parameters to be updated, at least one of the",
99-
"following should be informed: name, description or allowUserDrivenBackups.", id));
98+
throw new InvalidParameterValueException(String.format("Can't update Backup Offering [id: %s] because there are no parameters to be updated," +
99+
" at least one of the following should be passed: name, description or allowUserDrivenBackups.", id));
100100
}
101101

102102
BackupOffering result = backupManager.updateBackupOffering(this);

‎api/src/main/java/org/apache/cloudstack/api/command/user/dns/AddDnsServerCmd.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
requestHasSensitiveInfo = true,
4747
responseHasSensitiveInfo = false,
4848
since = "4.23.0",
49-
authorized = {RoleType.Admin, RoleType.ResourceAdmin, RoleType.DomainAdmin, RoleType.User})
49+
authorized = {RoleType.Admin})
5050
public class AddDnsServerCmd extends BaseCmd {
5151

5252
/////////////////////////////////////////////////////

0 commit comments

Comments
 (0)