Skip to content

Fix jail_set - #41

Open
vbotka wants to merge 1 commit into
fractalcells:masterfrom
vbotka:fix-jail_set
Open

Fix jail_set#41
vbotka wants to merge 1 commit into
fractalcells:masterfrom
vbotka:fix-jail_set

Conversation

@vbotka

@vbotka vbotka commented Sep 4, 2021

Copy link
Copy Markdown
Contributor
  • Replace 'not _val' by '_val is None'. Former condition falsely selects and skips 0
  • Remove redundant test '_property in _existing_props.keys()'. Already
    tested by the first condition in the loop
  • Replace loop need_start by testing intersect of the lists.
  • Remove unused vars rc=1,out="",cmd=""

Tested ( in the branch current)

ANSIBLE_SHOW_CUSTOM_STATS=true ansible-playbook iocage_test.yml -M . -e @extra_vars/test_31-debug.yml -e @extra_vars/properties_default.yml -t test_set
test_23:   a1: Sep 04 09:39:46  a2: Sep 04 09:39:58  ok: 1

* Replace 'not _val' by '_val is None'. Former condition falsely
  selects and skips 0
* Remove redundant test '_property in _existing_props.keys()'. Already
  tested by the first condition in the loop.
* Replace loop need_start by testing intersect of the lists.
* Remove unused vars rc=1, out="", cmd=""
* Initialization of propval not needed.
* The dash '-' already tested. Test string instead.
* Quote string values.
* Tested (in the branch current).
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