Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plugin cannot read the on field #867

Closed
init-object opened this issue Nov 17, 2021 · 4 comments
Closed

plugin cannot read the on field #867

init-object opened this issue Nov 17, 2021 · 4 comments
Assignees
Labels
kind/bug Something isn't working

Comments

@init-object
Copy link
Contributor

init-object commented Nov 17, 2021

What happened:

Read the plugin on eld in the clusterfile.yaml file is empty
image

image

The yamltojson method reads the on field as a true field
image
may be "on" is keyword

What you expected to happen:

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:

Environment:

  • sealer version (use sealer version): latest source
  • Cloud provider or hardware configuration:
  • OS (e.g: cat /etc/os-release): macos 12.0.1
  • Kernel (e.g. uname -a):
  • Install tools:
  • Others:
@init-object init-object added the kind/bug Something isn't working label Nov 17, 2021
@fanux
Copy link
Collaborator

fanux commented Nov 17, 2021

/invite

@github-actions
Copy link

It's my pleasure to invite you to join us :
Sealer dingtalk group : 34619594
Mail list : sealer@list.alibaba-inc.com
Developer please add my dingtalk or wechat : fangnux

@bxy4543
Copy link
Member

bxy4543 commented Nov 22, 2021

image
This may be related to yaml/v2 and yaml/v3

@bxy4543
Copy link
Member

bxy4543 commented Nov 23, 2021

I found some with similar problems:
kubernetes/kubernetes#102308 (comment)
go-yaml/yaml#214
The YAML 1.1 spec explicitly supported unquoted values like "on/off" or "yes/no" as booleans.
You can temporarily fix this problem by using the quote 'on' field

image

@fanux fanux closed this as completed Jan 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants