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

Fixing string field typecasting warning #35

Merged
merged 2 commits into from Jul 31, 2019
Merged

Fixing string field typecasting warning #35

merged 2 commits into from Jul 31, 2019

Conversation

ghost
Copy link

@ghost ghost commented Jul 31, 2019

Warning message:

 TASK [Ubuntu1804-CIS : SCORED | 1.5.1 | PATCH | Ensure core dumps are restricted] **************************************************************************************
  [WARNING]: The value 0 (type int) in a string field was converted to '0' (type string). If this does not look like what you expect, quote the entire value to ensure
 it does not change.


 TASK [Ubuntu1804-CIS : SCORED | 1.5.3 | PATCH | Ensure address space layout randomization (ASLR) is enabled] ***********************************************************
  [WARNING]: The value 2 (type int) in a string field was converted to '2' (type string). If this does not look like what you expect, quote the entire value to ensure
 it does not change.


 TASK [Ubuntu1804-CIS : SCORED | 3.2.5 | PATCH | Ensure broadcast ICMP requests are ignored] ****************************************************************************
  [WARNING]: The value 1 (type int) in a string field was converted to '1' (type string). If this does not look like what you expect, quote the entire value to ensure
 it does not change.

Proposed solution:

YAML requires to enclose string values in quotes to avoid integer representation.

@florianutz florianutz merged commit c52a6d9 into florianutz:master Jul 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant