summaryrefslogtreecommitdiff
path: root/lib/ansible/constants.py
diff options
context:
space:
mode:
authorToshio Kuratomi <a.badger@gmail.com>2018-08-13 14:09:55 -0700
committerToshio Kuratomi <a.badger@gmail.com>2018-08-13 15:21:44 -0700
commit688ffa4cee260dc12edc0b7d21eb2cfb822201b1 (patch)
tree6f1e5869c697eeff45a2530d45ad72023c383876 /lib/ansible/constants.py
parent96a6011b3f93c9ca8cdf44e016cab5f2e4d02f1c (diff)
downloadansible-688ffa4cee260dc12edc0b7d21eb2cfb822201b1.tar.gz
We can create a frozenset from a tuple
No need to create an intermediate set.
Diffstat (limited to 'lib/ansible/constants.py')
-rw-r--r--lib/ansible/constants.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/ansible/constants.py b/lib/ansible/constants.py
index e19fd7d5e3..250b27a26f 100644
--- a/lib/ansible/constants.py
+++ b/lib/ansible/constants.py
@@ -123,9 +123,9 @@ VAULT_VERSION_MAX = 1.0
# object. The dictionary values are tuples, to account for aliases
# in variable names.
-COMMON_CONNECTION_VARS = frozenset(set(('ansible_connection', 'ansible_host', 'ansible_user', 'ansible_shell_executable',
- 'ansible_port', 'ansible_pipelining', 'ansible_password', 'ansible_timeout',
- 'ansible_shell_type', 'ansible_module_compression', 'ansible_private_key_file')))
+COMMON_CONNECTION_VARS = frozenset(('ansible_connection', 'ansible_host', 'ansible_user', 'ansible_shell_executable',
+ 'ansible_port', 'ansible_pipelining', 'ansible_password', 'ansible_timeout',
+ 'ansible_shell_type', 'ansible_module_compression', 'ansible_private_key_file'))
MAGIC_VARIABLE_MAPPING = dict(