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