Skip to content

Commit

Permalink
Fix forbidden implicit octal value (#4049)
Browse files Browse the repository at this point in the history
Fix ansible-lint yaml[octal-values]

https://ansible.readthedocs.io/projects/lint/rules/risky-octal/

Co-authored-by: Sorin Sbarnea <ssbarnea@redhat.com>
  • Loading branch information
jooola and ssbarnea committed Oct 11, 2023
1 parent bb8a563 commit 9a8f4e0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion molecule/default/create.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@
{{ instance_conf | to_json | from_json | to_yaml }}
dest: "{{ molecule_instance_config }}"
mode: 0600
mode: "0600"
2 changes: 1 addition & 1 deletion molecule/default/destroy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
{{ instance_conf | to_json | from_json | to_yaml }}
dest: "{{ molecule_instance_config }}"
mode: 0600
mode: "0600"
when: server.changed | default(false) | bool # noqa no-handler
3 changes: 1 addition & 2 deletions src/molecule/data/templates/scenario/create.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
gather_facts: false
# no_log: "{{ molecule_no_log }}"
tasks:

# TODO: Developer must implement and populate 'server' variable

- name: Create instance config
Expand Down Expand Up @@ -34,5 +33,5 @@

{{ instance_conf | to_json | from_json | to_yaml }}
dest: "{{ molecule_instance_config }}"
mode: 0600
mode: "0600"
{%- endraw %}
2 changes: 1 addition & 1 deletion src/molecule/data/templates/scenario/destroy.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@

{{ instance_conf | to_json | from_json | to_yaml }}
dest: "{{ molecule_instance_config }}"
mode: 0600
mode: "0600"
when: server.changed | default(false) | bool # noqa no-handler
{%- endraw %}

0 comments on commit 9a8f4e0

Please sign in to comment.