mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-10-06 06:06:05 +08:00
fix(vm): add isWindows guard to validateCloudInit in template version
This commit is contained in:
committed by
Andy Lee
parent
1df5af32b8
commit
ace28d1c0e
@@ -249,6 +249,10 @@ export default {
|
||||
},
|
||||
|
||||
validateCloudInit() {
|
||||
if (this.isWindows) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (this.userScript) {
|
||||
try {
|
||||
jsyaml.load(this.userScript);
|
||||
|
||||
Reference in New Issue
Block a user