Merge remote-tracking branch 'apache/4.15'

This commit is contained in:
Abhishek Kumar 2021-05-31 09:47:33 +05:30
commit b104aca587
2 changed files with 4 additions and 1 deletions

View File

@ -3260,7 +3260,7 @@ public class NfsSecondaryStorageResource extends ServerResourceBase implements S
long accountTemplateDirSize = 0;
File accountTemplateDir = new File(rootDir + getTemplatePathForAccount(accountId));
if (accountTemplateDir.exists()) {
FileUtils.sizeOfDirectory(accountTemplateDir);
accountTemplateDirSize = FileUtils.sizeOfDirectory(accountTemplateDir);
}
long accountVolumeDirSize = 0;
File accountVolumeDir = new File(rootDir + getVolumePathForAccount(accountId));

View File

@ -837,6 +837,9 @@ export default {
}
}
}
if (!('requireshvm' in params)) { // handled as default true by API
params.requireshvm = false
}
if (this.currentForm === 'Create') {
this.loading = true
api('registerTemplate', params).then(json => {