community.general/lib/ansible
Toshio Kuratomi 22c9428776 eval() should be avoided when at all possible
eval can have security consequences.  It doesn't look bad here but it
does introduce unnecessary complexity and would make it harder if we
ever want to use static analysis to detect and prohibit eval.  So we
should get rid of it.

Note: this could be even more efficient if we combined the checks into
a single condition instead of looping but that does change the error
messages a bit.  For instance:
-        for arg in ('name', 'linode_id'):
-            if not eval(arg):
+        if not (name and linode_id):
+            module.fail_json(msg='name and linode_id are required for active state')
2017-01-05 10:41:49 -08:00
..
cli Correctly set loader path when using list tags/tasks 2016-12-21 21:01:02 -06:00
compat Fix role completion detection problem 2017-01-03 14:32:44 -06:00
config
errors adds feature to all modules to be run locally (#18763) 2016-12-15 15:47:29 -05:00
executor Fixing an iteration bug introduced by fed079e4 2017-01-04 10:34:06 -06:00
galaxy For container enabled role, display warning only when not ANSIBLE_CONTAINER (#18717) 2016-12-02 10:08:10 -05:00
inventory warn when examined group_vars is not dir 2016-12-22 12:39:31 -05:00
module_utils updates netcfg and refactors Config class (#19920) 2017-01-04 23:23:08 -05:00
modules eval() should be avoided when at all possible 2017-01-05 10:41:49 -08:00
parsing Add a encode() to AnsibleVaultEncryptedUnicode (#19840) 2017-01-04 12:17:19 -05:00
playbook Removing unused files in playbook/ directory 2017-01-04 15:17:15 -06:00
plugins updates action plugins for network_cli connection (#19849) 2017-01-04 21:52:46 -05:00
template Wrap unhandled errors from lookups in an AnsibleError 2016-12-21 11:48:18 -06:00
utils Contributing new module to manage HUAWEI data center CloudEngine switch. (#19793) 2017-01-03 22:30:59 -05:00
vars Display proper error on group_vars syntax error 2016-12-16 21:13:41 -05:00
__init__.py Fix ziploader for the cornercase of ansible invoking ansible. 2016-04-29 08:47:49 -07:00
constants.py openbsd_pkg: make "name" take a list. 2017-01-04 18:45:31 -08:00
release.py Bumping devel version to 2.3.0 2016-10-03 11:46:31 -05:00
test-requirements.txt