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

Fix jail_set #41

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix jail_set #41

wants to merge 1 commit into from

Conversation

vbotka
Copy link
Contributor

@vbotka vbotka commented Sep 4, 2021

  • 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