correction about Boolean expression

Go Yoshimura go-yoshimura at sstc.co.jp
Thu May 13 07:53:12 UTC 2021


Hello All,

- Please ignore previous message.
- We are sorry 
  https://ubuntu.com/server/docs/install/autoinstall-reference
  is 
  described with true/false

thank you
go
----------
:
>Hello All,
>
>- Boolean expression in
>  https://ubuntu.com/server/docs/install/autoinstall-reference
>should be false/true rather than no/yes
>
>- When we yamllint against a user-data file With following 
>   https://ubuntu.com/server/docs/install/autoinstall-reference
>  we get errors like
> warning  truthy value should be one of [false, true]  (truthy)
>
>
># yamllint  ./user-data.ok20210513 
>./user-data.ok20210513
>  1:2       warning  missing starting space in comment  (comments)
>  2:1       warning  missing document start "---"  (document-start)
>  6:81      error    line too long (122 > 80 characters)  (line-length)
>  9:21      warning  truthy value should be one of [false, true]  (truthy)
>  10:15     warning  truthy value should be one of [false, true]  (truthy)
>  13:4      error    wrong indentation: expected 4 but found 3  (indentation)
>
># grep -n -e ": yes" ./user-data.ok20210513 
>9:    install-server: yes
>10:    allow-pw: yes
>
># yamllint  ./user-data.trueFalse 
>./user-data.trueFalse
>  1:2       warning  missing starting space in comment  (comments)
>  2:1       warning  missing document start "---"  (document-start)
>  6:81      error    line too long (122 > 80 characters)  (line-length)
>  13:4      error    wrong indentation: expected 4 but found 3  (indentation)
>
>[root at npxe7-00 autoinst]# diff ./user-data.trueFalse ./user-data.ok20210513 
>9,10c9,10
><     install-server: true
><     allow-pw: true
>---
>>     install-server: yes
>>     allow-pw: yes
>
>
>- /var/log/installer/autoinstall-user-data after successfull autoinstallation with user-data.ok20210513 
>   is also with true/false rather than yes/no
># grep -A 3 -e " ssh:" autoinstall-user-data 
>  ssh:
>    allow-pw: true
>    authorized-keys: []
>    install-server: true
>
>
>thank you
>go
>---
>
>----
>Go Yoshimura <go-yoshimura at sstc.co.jp>
>Scalable Systems Co., Ltd.  <http://www.sstc.co.jp/>
>Osaka Office            HONMACHI-COLLABO Bldg. 4F, 4-4-2 Kita-kyuhoji-machi, Chuo-ku, Osaka 541-0057 Japan
>              Tel: 81-6-6224-4115
>Tokyo Kojimachi Office  BUREX Kojimachi 11F, 3-5-2 Kojimachi, Chiyoda-ku, Tokyo 102-0083 Japan 
>              Tel: 81-3-5875-4718 Fax: 81-3-3237-7612              
>

----
Go Yoshimura <go-yoshimura at sstc.co.jp>
Scalable Systems Co., Ltd.  <http://www.sstc.co.jp/>
Osaka Office            HONMACHI-COLLABO Bldg. 4F, 4-4-2 Kita-kyuhoji-machi, Chuo-ku, Osaka 541-0057 Japan
              Tel: 81-6-6224-4115
Tokyo Kojimachi Office  BUREX Kojimachi 11F, 3-5-2 Kojimachi, Chiyoda-ku, Tokyo 102-0083 Japan 
              Tel: 81-3-5875-4718 Fax: 81-3-3237-7612              




More information about the ubuntu-doc mailing list