mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-10-01 03:36:04 +08:00
fix: validate Windows CloudInit YAML on save
Co-authored-by: a110605 <5744158+a110605@users.noreply.github.com>
This commit is contained in:
committed by
Andy Lee
co-authored by
a110605
parent
ace28d1c0e
commit
535a6067c9
@@ -249,10 +249,6 @@ export default {
|
||||
},
|
||||
|
||||
validateCloudInit() {
|
||||
if (this.isWindows) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (this.userScript) {
|
||||
try {
|
||||
jsyaml.load(this.userScript);
|
||||
|
||||
@@ -427,10 +427,6 @@ export default {
|
||||
},
|
||||
|
||||
validateCloudInit() {
|
||||
if (this.isWindows) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (this.userScript) {
|
||||
try {
|
||||
jsyaml.load(this.userScript);
|
||||
|
||||
Reference in New Issue
Block a user