mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-24 13:50:22 -07:00
PEP 8 W291 whitespace cleanup.
This commit is contained in:
parent
95789f3949
commit
d913f69ba1
166 changed files with 493 additions and 565 deletions
|
@ -6,7 +6,6 @@ contrib/inventory/consul_io.py
|
|||
contrib/inventory/digital_ocean.py
|
||||
contrib/inventory/docker.py
|
||||
contrib/inventory/ec2.py
|
||||
contrib/inventory/freeipa.py
|
||||
contrib/inventory/gce.py
|
||||
contrib/inventory/linode.py
|
||||
contrib/inventory/mdt_dynamic_inventory.py
|
||||
|
@ -41,10 +40,8 @@ lib/ansible/executor/stats.py
|
|||
lib/ansible/executor/task_executor.py
|
||||
lib/ansible/galaxy/login.py
|
||||
lib/ansible/galaxy/role.py
|
||||
lib/ansible/galaxy/token.py
|
||||
lib/ansible/inventory/dir.py
|
||||
lib/ansible/inventory/script.py
|
||||
lib/ansible/inventory/yaml.py
|
||||
lib/ansible/module_utils/azure_rm_common.py
|
||||
lib/ansible/module_utils/basic.py
|
||||
lib/ansible/module_utils/docker_common.py
|
||||
|
@ -95,7 +92,6 @@ lib/ansible/modules/cloud/amazon/ec2_vpc_dhcp_options_facts.py
|
|||
lib/ansible/modules/cloud/amazon/ec2_vpc_nacl.py
|
||||
lib/ansible/modules/cloud/amazon/ec2_vpc_net.py
|
||||
lib/ansible/modules/cloud/amazon/ec2_vpc_net_facts.py
|
||||
lib/ansible/modules/cloud/amazon/ec2_vpc_peer.py
|
||||
lib/ansible/modules/cloud/amazon/ec2_vpc_route_table.py
|
||||
lib/ansible/modules/cloud/amazon/ec2_vpc_route_table_facts.py
|
||||
lib/ansible/modules/cloud/amazon/ec2_vpc_subnet.py
|
||||
|
@ -128,7 +124,6 @@ lib/ansible/modules/cloud/amazon/s3_lifecycle.py
|
|||
lib/ansible/modules/cloud/amazon/s3_sync.py
|
||||
lib/ansible/modules/cloud/amazon/s3_website.py
|
||||
lib/ansible/modules/cloud/amazon/sns_topic.py
|
||||
lib/ansible/modules/cloud/amazon/sqs_queue.py
|
||||
lib/ansible/modules/cloud/amazon/sts_assume_role.py
|
||||
lib/ansible/modules/cloud/amazon/sts_session_token.py
|
||||
lib/ansible/modules/cloud/atomic/atomic_host.py
|
||||
|
@ -156,7 +151,6 @@ lib/ansible/modules/cloud/docker/docker_container.py
|
|||
lib/ansible/modules/cloud/docker/docker_image.py
|
||||
lib/ansible/modules/cloud/docker/docker_service.py
|
||||
lib/ansible/modules/cloud/google/gc_storage.py
|
||||
lib/ansible/modules/cloud/google/gcdns_record.py
|
||||
lib/ansible/modules/cloud/google/gce_img.py
|
||||
lib/ansible/modules/cloud/google/gce_lb.py
|
||||
lib/ansible/modules/cloud/google/gce_mig.py
|
||||
|
@ -172,12 +166,10 @@ lib/ansible/modules/cloud/misc/proxmox_kvm.py
|
|||
lib/ansible/modules/cloud/misc/proxmox_template.py
|
||||
lib/ansible/modules/cloud/misc/serverless.py
|
||||
lib/ansible/modules/cloud/misc/virt.py
|
||||
lib/ansible/modules/cloud/misc/virt_net.py
|
||||
lib/ansible/modules/cloud/misc/xenserver_facts.py
|
||||
lib/ansible/modules/cloud/openstack/_glance_image.py
|
||||
lib/ansible/modules/cloud/openstack/_keystone_user.py
|
||||
lib/ansible/modules/cloud/openstack/_nova_compute.py
|
||||
lib/ansible/modules/cloud/openstack/_nova_keypair.py
|
||||
lib/ansible/modules/cloud/openstack/_quantum_floating_ip.py
|
||||
lib/ansible/modules/cloud/openstack/_quantum_floating_ip_associate.py
|
||||
lib/ansible/modules/cloud/openstack/_quantum_network.py
|
||||
|
@ -186,15 +178,12 @@ lib/ansible/modules/cloud/openstack/_quantum_router_gateway.py
|
|||
lib/ansible/modules/cloud/openstack/_quantum_router_interface.py
|
||||
lib/ansible/modules/cloud/openstack/_quantum_subnet.py
|
||||
lib/ansible/modules/cloud/openstack/os_auth.py
|
||||
lib/ansible/modules/cloud/openstack/os_client_config.py
|
||||
lib/ansible/modules/cloud/openstack/os_nova_host_aggregate.py
|
||||
lib/ansible/modules/cloud/openstack/os_object.py
|
||||
lib/ansible/modules/cloud/openstack/os_project.py
|
||||
lib/ansible/modules/cloud/openstack/os_project_facts.py
|
||||
lib/ansible/modules/cloud/openstack/os_quota.py
|
||||
lib/ansible/modules/cloud/openstack/os_recordset.py
|
||||
lib/ansible/modules/cloud/openstack/os_zone.py
|
||||
lib/ansible/modules/cloud/ovh/ovh_ip_loadbalancing_backend.py
|
||||
lib/ansible/modules/cloud/packet/packet_device.py
|
||||
lib/ansible/modules/cloud/packet/packet_sshkey.py
|
||||
lib/ansible/modules/cloud/profitbricks/profitbricks.py
|
||||
|
@ -202,17 +191,10 @@ lib/ansible/modules/cloud/profitbricks/profitbricks_datacenter.py
|
|||
lib/ansible/modules/cloud/profitbricks/profitbricks_nic.py
|
||||
lib/ansible/modules/cloud/profitbricks/profitbricks_volume.py
|
||||
lib/ansible/modules/cloud/profitbricks/profitbricks_volume_attachments.py
|
||||
lib/ansible/modules/cloud/rackspace/rax_cbs.py
|
||||
lib/ansible/modules/cloud/rackspace/rax_cbs_attachments.py
|
||||
lib/ansible/modules/cloud/rackspace/rax_clb.py
|
||||
lib/ansible/modules/cloud/rackspace/rax_identity.py
|
||||
lib/ansible/modules/cloud/rackspace/rax_network.py
|
||||
lib/ansible/modules/cloud/rackspace/rax_queue.py
|
||||
lib/ansible/modules/cloud/softlayer/sl_vm.py
|
||||
lib/ansible/modules/cloud/vmware/vca_fw.py
|
||||
lib/ansible/modules/cloud/vmware/vmware_guest.py
|
||||
lib/ansible/modules/cloud/vmware/vmware_local_user_manager.py
|
||||
lib/ansible/modules/cloud/vmware/vsphere_copy.py
|
||||
lib/ansible/modules/cloud/vmware/vsphere_guest.py
|
||||
lib/ansible/modules/cloud/webfaction/webfaction_app.py
|
||||
lib/ansible/modules/cloud/webfaction/webfaction_db.py
|
||||
|
@ -227,7 +209,6 @@ lib/ansible/modules/commands/command.py
|
|||
lib/ansible/modules/commands/script.py
|
||||
lib/ansible/modules/crypto/openssl_publickey.py
|
||||
lib/ansible/modules/database/influxdb/influxdb_retention_policy.py
|
||||
lib/ansible/modules/database/misc/kibana_plugin.py
|
||||
lib/ansible/modules/database/misc/mongodb_parameter.py
|
||||
lib/ansible/modules/database/misc/mongodb_user.py
|
||||
lib/ansible/modules/database/misc/redis.py
|
||||
|
@ -239,7 +220,6 @@ lib/ansible/modules/database/mysql/mysql_user.py
|
|||
lib/ansible/modules/database/mysql/mysql_variables.py
|
||||
lib/ansible/modules/database/postgresql/postgresql_db.py
|
||||
lib/ansible/modules/database/postgresql/postgresql_ext.py
|
||||
lib/ansible/modules/database/postgresql/postgresql_lang.py
|
||||
lib/ansible/modules/database/postgresql/postgresql_privs.py
|
||||
lib/ansible/modules/database/postgresql/postgresql_schema.py
|
||||
lib/ansible/modules/database/postgresql/postgresql_user.py
|
||||
|
@ -252,7 +232,6 @@ lib/ansible/modules/files/copy.py
|
|||
lib/ansible/modules/files/find.py
|
||||
lib/ansible/modules/files/ini_file.py
|
||||
lib/ansible/modules/files/lineinfile.py
|
||||
lib/ansible/modules/files/patch.py
|
||||
lib/ansible/modules/files/stat.py
|
||||
lib/ansible/modules/files/synchronize.py
|
||||
lib/ansible/modules/files/tempfile.py
|
||||
|
@ -266,31 +245,19 @@ lib/ansible/modules/monitoring/datadog_monitor.py
|
|||
lib/ansible/modules/monitoring/librato_annotation.py
|
||||
lib/ansible/modules/monitoring/logicmonitor.py
|
||||
lib/ansible/modules/monitoring/logicmonitor_facts.py
|
||||
lib/ansible/modules/monitoring/monit.py
|
||||
lib/ansible/modules/monitoring/nagios.py
|
||||
lib/ansible/modules/monitoring/pagerduty.py
|
||||
lib/ansible/modules/monitoring/pagerduty_alert.py
|
||||
lib/ansible/modules/monitoring/pingdom.py
|
||||
lib/ansible/modules/monitoring/sensu_check.py
|
||||
lib/ansible/modules/monitoring/stackdriver.py
|
||||
lib/ansible/modules/monitoring/statusio_maintenance.py
|
||||
lib/ansible/modules/monitoring/zabbix_host.py
|
||||
lib/ansible/modules/monitoring/zabbix_hostmacro.py
|
||||
lib/ansible/modules/monitoring/zabbix_screen.py
|
||||
lib/ansible/modules/network/a10/a10_server.py
|
||||
lib/ansible/modules/network/a10/a10_server_axapi3.py
|
||||
lib/ansible/modules/network/a10/a10_service_group.py
|
||||
lib/ansible/modules/network/a10/a10_virtual_server.py
|
||||
lib/ansible/modules/network/basics/get_url.py
|
||||
lib/ansible/modules/network/basics/slurp.py
|
||||
lib/ansible/modules/network/basics/uri.py
|
||||
lib/ansible/modules/network/cloudengine/ce_command.py
|
||||
lib/ansible/modules/network/cloudflare_dns.py
|
||||
lib/ansible/modules/network/dellos10/dellos10_facts.py
|
||||
lib/ansible/modules/network/dellos6/dellos6_facts.py
|
||||
lib/ansible/modules/network/dellos9/dellos9_command.py
|
||||
lib/ansible/modules/network/dellos9/dellos9_config.py
|
||||
lib/ansible/modules/network/dellos9/dellos9_facts.py
|
||||
lib/ansible/modules/network/dnsimple.py
|
||||
lib/ansible/modules/network/dnsmadeeasy.py
|
||||
lib/ansible/modules/network/exoscale/exo_dns_record.py
|
||||
|
@ -301,8 +268,6 @@ lib/ansible/modules/network/f5/bigip_pool.py
|
|||
lib/ansible/modules/network/f5/bigip_pool_member.py
|
||||
lib/ansible/modules/network/f5/bigip_virtual_server.py
|
||||
lib/ansible/modules/network/haproxy.py
|
||||
lib/ansible/modules/network/junos/junos_facts.py
|
||||
lib/ansible/modules/network/lldp.py
|
||||
lib/ansible/modules/network/nmcli.py
|
||||
lib/ansible/modules/network/nxos/nxos_aaa_server.py
|
||||
lib/ansible/modules/network/nxos/nxos_aaa_server_host.py
|
||||
|
@ -364,15 +329,9 @@ lib/ansible/modules/network/nxos/nxos_vtp_password.py
|
|||
lib/ansible/modules/network/nxos/nxos_vtp_version.py
|
||||
lib/ansible/modules/network/nxos/nxos_vxlan_vtep.py
|
||||
lib/ansible/modules/network/nxos/nxos_vxlan_vtep_vni.py
|
||||
lib/ansible/modules/network/ovs/openvswitch_port.py
|
||||
lib/ansible/modules/network/panos/panos_nat_policy.py
|
||||
lib/ansible/modules/network/snmp_facts.py
|
||||
lib/ansible/modules/notification/flowdock.py
|
||||
lib/ansible/modules/notification/hall.py
|
||||
lib/ansible/modules/notification/irc.py
|
||||
lib/ansible/modules/notification/mqtt.py
|
||||
lib/ansible/modules/notification/osx_say.py
|
||||
lib/ansible/modules/notification/pushbullet.py
|
||||
lib/ansible/modules/notification/sendgrid.py
|
||||
lib/ansible/modules/notification/sns.py
|
||||
lib/ansible/modules/packaging/language/bundler.py
|
||||
|
@ -393,25 +352,18 @@ lib/ansible/modules/packaging/os/pacman.py
|
|||
lib/ansible/modules/packaging/os/pkg5_publisher.py
|
||||
lib/ansible/modules/packaging/os/pkgin.py
|
||||
lib/ansible/modules/packaging/os/pkgng.py
|
||||
lib/ansible/modules/packaging/os/pkgutil.py
|
||||
lib/ansible/modules/packaging/os/portinstall.py
|
||||
lib/ansible/modules/packaging/os/redhat_subscription.py
|
||||
lib/ansible/modules/packaging/os/rhn_channel.py
|
||||
lib/ansible/modules/packaging/os/rhn_register.py
|
||||
lib/ansible/modules/packaging/os/rpm_key.py
|
||||
lib/ansible/modules/packaging/os/svr4pkg.py
|
||||
lib/ansible/modules/packaging/os/swdepot.py
|
||||
lib/ansible/modules/packaging/os/urpmi.py
|
||||
lib/ansible/modules/packaging/os/yum.py
|
||||
lib/ansible/modules/packaging/os/zypper.py
|
||||
lib/ansible/modules/packaging/os/zypper_repository.py
|
||||
lib/ansible/modules/remote_management/foreman/katello.py
|
||||
lib/ansible/modules/remote_management/stacki/stacki_host.py
|
||||
lib/ansible/modules/source_control/github_hooks.py
|
||||
lib/ansible/modules/source_control/hg.py
|
||||
lib/ansible/modules/storage/infinidat/infini_export.py
|
||||
lib/ansible/modules/storage/infinidat/infini_export_client.py
|
||||
lib/ansible/modules/storage/infinidat/infini_pool.py
|
||||
lib/ansible/modules/storage/netapp/netapp_e_amg.py
|
||||
lib/ansible/modules/storage/netapp/netapp_e_amg_sync.py
|
||||
lib/ansible/modules/storage/netapp/netapp_e_auth.py
|
||||
|
@ -422,10 +374,8 @@ lib/ansible/modules/storage/netapp/netapp_e_snapshot_volume.py
|
|||
lib/ansible/modules/storage/netapp/netapp_e_storage_system.py
|
||||
lib/ansible/modules/storage/netapp/netapp_e_storagepool.py
|
||||
lib/ansible/modules/system/authorized_key.py
|
||||
lib/ansible/modules/system/capabilities.py
|
||||
lib/ansible/modules/system/cron.py
|
||||
lib/ansible/modules/system/debconf.py
|
||||
lib/ansible/modules/system/facter.py
|
||||
lib/ansible/modules/system/filesystem.py
|
||||
lib/ansible/modules/system/firewalld.py
|
||||
lib/ansible/modules/system/gconftool2.py
|
||||
|
@ -433,24 +383,16 @@ lib/ansible/modules/system/gluster_volume.py
|
|||
lib/ansible/modules/system/group.py
|
||||
lib/ansible/modules/system/known_hosts.py
|
||||
lib/ansible/modules/system/locale_gen.py
|
||||
lib/ansible/modules/system/lvg.py
|
||||
lib/ansible/modules/system/lvol.py
|
||||
lib/ansible/modules/system/modprobe.py
|
||||
lib/ansible/modules/system/ohai.py
|
||||
lib/ansible/modules/system/openwrt_init.py
|
||||
lib/ansible/modules/system/pam_limits.py
|
||||
lib/ansible/modules/system/sefcontext.py
|
||||
lib/ansible/modules/system/seport.py
|
||||
lib/ansible/modules/system/setup.py
|
||||
lib/ansible/modules/system/solaris_zone.py
|
||||
lib/ansible/modules/system/sysctl.py
|
||||
lib/ansible/modules/system/systemd.py
|
||||
lib/ansible/modules/system/ufw.py
|
||||
lib/ansible/modules/system/user.py
|
||||
lib/ansible/modules/utilities/helper/_accelerate.py
|
||||
lib/ansible/modules/utilities/helper/meta.py
|
||||
lib/ansible/modules/utilities/logic/assert.py
|
||||
lib/ansible/modules/utilities/logic/async_status.py
|
||||
lib/ansible/modules/utilities/logic/include.py
|
||||
lib/ansible/modules/utilities/logic/include_role.py
|
||||
lib/ansible/modules/utilities/logic/include_vars.py
|
||||
|
@ -462,7 +404,6 @@ lib/ansible/modules/web_infrastructure/apache2_module.py
|
|||
lib/ansible/modules/web_infrastructure/django_manage.py
|
||||
lib/ansible/modules/web_infrastructure/jenkins_job.py
|
||||
lib/ansible/modules/web_infrastructure/jira.py
|
||||
lib/ansible/modules/web_infrastructure/letsencrypt.py
|
||||
lib/ansible/modules/web_infrastructure/nginx_status_facts.py
|
||||
lib/ansible/modules/web_infrastructure/taiga_issue.py
|
||||
lib/ansible/modules/windows/win_acl.py
|
||||
|
@ -507,7 +448,6 @@ lib/ansible/plugins/callback/logentries.py
|
|||
lib/ansible/plugins/callback/oneline.py
|
||||
lib/ansible/plugins/callback/profile_tasks.py
|
||||
lib/ansible/plugins/callback/selective.py
|
||||
lib/ansible/plugins/callback/syslog_json.py
|
||||
lib/ansible/plugins/connection/accelerate.py
|
||||
lib/ansible/plugins/connection/paramiko_ssh.py
|
||||
lib/ansible/plugins/connection/ssh.py
|
||||
|
@ -520,8 +460,6 @@ lib/ansible/plugins/lookup/dnstxt.py
|
|||
lib/ansible/plugins/lookup/first_found.py
|
||||
lib/ansible/plugins/lookup/hashi_vault.py
|
||||
lib/ansible/plugins/lookup/mongodb.py
|
||||
lib/ansible/plugins/lookup/pipe.py
|
||||
lib/ansible/plugins/lookup/random_choice.py
|
||||
lib/ansible/plugins/lookup/sequence.py
|
||||
lib/ansible/plugins/shell/fish.py
|
||||
lib/ansible/plugins/shell/sh.py
|
||||
|
@ -531,12 +469,9 @@ lib/ansible/plugins/strategy/linear.py
|
|||
lib/ansible/template/__init__.py
|
||||
lib/ansible/utils/cmd_functions.py
|
||||
lib/ansible/utils/encrypt.py
|
||||
lib/ansible/utils/helpers.py
|
||||
lib/ansible/utils/module_docs.py
|
||||
lib/ansible/utils/module_docs_fragments/auth_basic.py
|
||||
lib/ansible/utils/module_docs_fragments/aws.py
|
||||
lib/ansible/utils/module_docs_fragments/azure_tags.py
|
||||
lib/ansible/utils/module_docs_fragments/cloudengine.py
|
||||
lib/ansible/utils/module_docs_fragments/ec2.py
|
||||
lib/ansible/utils/module_docs_fragments/files.py
|
||||
lib/ansible/utils/module_docs_fragments/infinibox.py
|
||||
|
@ -549,10 +484,8 @@ test/integration/cleanup_ec2.py
|
|||
test/integration/cleanup_gce.py
|
||||
test/integration/setup_gce.py
|
||||
test/units/cli/test_galaxy.py
|
||||
test/units/contrib/inventory/test_vmware_inventory.py
|
||||
test/units/errors/test_errors.py
|
||||
test/units/executor/test_playbook_executor.py
|
||||
test/units/executor/test_task_executor.py
|
||||
test/units/mock/yaml_helper.py
|
||||
test/units/module_utils/basic/test__log_invocation.py
|
||||
test/units/module_utils/basic/test_exit_json.py
|
||||
|
@ -570,14 +503,10 @@ test/units/parsing/test_mod_args.py
|
|||
test/units/parsing/yaml/test_loader.py
|
||||
test/units/playbook/test_block.py
|
||||
test/units/playbook/test_helpers.py
|
||||
test/units/playbook/test_play.py
|
||||
test/units/playbook/test_play_context.py
|
||||
test/units/playbook/test_task.py
|
||||
test/units/plugins/action/test_raw.py
|
||||
test/units/plugins/action/test_synchronize.py
|
||||
test/units/plugins/lookup/test_ini.py
|
||||
test/units/plugins/lookup/test_password.py
|
||||
test/units/plugins/strategy/test_strategy_base.py
|
||||
test/units/template/test_templar.py
|
||||
test/units/template/test_template_utilities.py
|
||||
test/units/utils/test_vars.py
|
||||
|
|
|
@ -15,4 +15,3 @@ E711
|
|||
E712
|
||||
E721
|
||||
W191
|
||||
W291
|
||||
|
|
|
@ -54,7 +54,7 @@ class TestVMWareInventory(unittest.TestCase):
|
|||
vmw = VMWareInventory(load=False)
|
||||
vmw.args = fakeargs
|
||||
vmw.inventory = BASICINVENTORY
|
||||
showdata = vmw.show()
|
||||
showdata = vmw.show()
|
||||
serializable = False
|
||||
|
||||
try:
|
||||
|
@ -71,7 +71,7 @@ class TestVMWareInventory(unittest.TestCase):
|
|||
vmw.args = fakeargs
|
||||
vmw.args.list = True
|
||||
vmw.inventory = BASICINVENTORY
|
||||
showdata = vmw.show()
|
||||
showdata = vmw.show()
|
||||
serializable = False
|
||||
|
||||
try:
|
||||
|
@ -88,7 +88,7 @@ class TestVMWareInventory(unittest.TestCase):
|
|||
vmw.args = fakeargs
|
||||
vmw.args.list = True
|
||||
vmw.inventory = BASICINVENTORY
|
||||
showdata = vmw.show()
|
||||
showdata = vmw.show()
|
||||
expected = json.dumps(BASICINVENTORY, indent=2)
|
||||
assert showdata == expected
|
||||
|
||||
|
@ -98,7 +98,7 @@ class TestVMWareInventory(unittest.TestCase):
|
|||
vmw.args = fakeargs
|
||||
vmw.args.host = 'foo'
|
||||
vmw.inventory = BASICINVENTORY
|
||||
showdata = vmw.show()
|
||||
showdata = vmw.show()
|
||||
serializable = False
|
||||
|
||||
try:
|
||||
|
@ -116,7 +116,7 @@ class TestVMWareInventory(unittest.TestCase):
|
|||
vmw.args.list = False
|
||||
vmw.args.host = 'foo'
|
||||
vmw.inventory = BASICINVENTORY
|
||||
showdata = vmw.show()
|
||||
showdata = vmw.show()
|
||||
expected = BASICINVENTORY['_meta']['hostvars']['foo']
|
||||
expected = json.dumps(expected, indent=2)
|
||||
#import epdb; epdb.st()
|
||||
|
|
|
@ -260,7 +260,7 @@ class TestTaskExecutor(unittest.TestCase):
|
|||
# you can't use a list as a dict key so that would probably throw
|
||||
# an error later. If so, we can throw it now instead.
|
||||
# Squashing in this case would not be intuitive as the user is being
|
||||
# explicit in using each list entry as a key.
|
||||
# explicit in using each list entry as a key.
|
||||
job_vars = dict(pkg_mgr='yum', packages={ "a": "foo", "b": "bar", "foo": "baz", "bar": "quux" })
|
||||
items = [['a', 'b'], ['foo', 'bar']]
|
||||
mock_task.action = 'yum'
|
||||
|
|
|
@ -174,19 +174,19 @@ ID_LIKE="suse"
|
|||
},
|
||||
{
|
||||
"platform.dist": [
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
""
|
||||
],
|
||||
],
|
||||
"input": {
|
||||
"/etc/os-release": "NAME=\"openSUSE Tumbleweed\"\n# VERSION=\"20160917\"\nID=opensuse\nID_LIKE=\"suse\"\nVERSION_ID=\"20160917\"\nPRETTY_NAME=\"openSUSE Tumbleweed\"\nANSI_COLOR=\"0;32\"\nCPE_NAME=\"cpe:/o:opensuse:tumbleweed:20160917\"\nBUG_REPORT_URL=\"https://bugs.opensuse.org\"\nHOME_URL=\"https://www.opensuse.org/\"\n"
|
||||
},
|
||||
"name": "openSUSE Tumbleweed 20160917",
|
||||
},
|
||||
"name": "openSUSE Tumbleweed 20160917",
|
||||
"result": {
|
||||
"distribution_release": "NA",
|
||||
"distribution": "openSUSE Tumbleweed",
|
||||
"distribution_major_version": "NA",
|
||||
"os_family": "Suse",
|
||||
"distribution_release": "NA",
|
||||
"distribution": "openSUSE Tumbleweed",
|
||||
"distribution_major_version": "NA",
|
||||
"os_family": "Suse",
|
||||
"distribution_version": "20160917"
|
||||
}
|
||||
},
|
||||
|
|
|
@ -77,7 +77,7 @@ class TestPlay(unittest.TestCase):
|
|||
name="test play",
|
||||
hosts=['foo'],
|
||||
gather_facts=False,
|
||||
tasks=[dict(action='shell echo "hello world"')],
|
||||
tasks=[dict(action='shell echo "hello world"')],
|
||||
))
|
||||
|
||||
def test_play_with_handlers(self):
|
||||
|
|
|
@ -32,8 +32,8 @@ class TestCopyResultExclude(unittest.TestCase):
|
|||
def tearDown(self):
|
||||
pass
|
||||
|
||||
# The current behavior of the raw aciton in regards to executable is currently in question;
|
||||
# the test_raw_executable_is_not_empty_string verifies the current behavior (whether it is desireed or not.
|
||||
# The current behavior of the raw aciton in regards to executable is currently in question;
|
||||
# the test_raw_executable_is_not_empty_string verifies the current behavior (whether it is desireed or not.
|
||||
# Please refer to the following for context:
|
||||
# Issue: https://github.com/ansible/ansible/issues/16054
|
||||
# PR: https://github.com/ansible/ansible/pull/16085
|
||||
|
|
|
@ -32,7 +32,7 @@ safe_vars = {}
|
|||
for k,v in task_vars.items():
|
||||
if k not in ['vars', 'hostvars']:
|
||||
safe_vars[k] = copy.deepcopy(v)
|
||||
else:
|
||||
else:
|
||||
sdata = str(v)
|
||||
newv = eval(sdata)
|
||||
safe_vars[k] = newv
|
||||
|
@ -46,7 +46,7 @@ with open('task_vars.json', 'wb') as f:
|
|||
|
||||
|
||||
class TaskMock(object):
|
||||
args = {'src': u'/tmp/deleteme',
|
||||
args = {'src': u'/tmp/deleteme',
|
||||
'dest': '/tmp/deleteme',
|
||||
'rsync_path': 'rsync'}
|
||||
async = None
|
||||
|
@ -82,7 +82,7 @@ class ModuleLoaderMock(object):
|
|||
pass
|
||||
|
||||
class SharedLoaderMock(object):
|
||||
module_loader = ModuleLoaderMock()
|
||||
module_loader = ModuleLoaderMock()
|
||||
|
||||
class SynchronizeTester(object):
|
||||
|
||||
|
@ -139,19 +139,19 @@ class SynchronizeTester(object):
|
|||
self.task.args[k] = v
|
||||
|
||||
# load inital task vars
|
||||
invarspath = os.path.join(fixturepath,
|
||||
invarspath = os.path.join(fixturepath,
|
||||
test_meta.get('fixtures', {}).get('taskvars_in', 'taskvars_in.json'))
|
||||
with open(invarspath, 'rb') as f:
|
||||
fdata = f.read()
|
||||
fdata = fdata.decode("utf-8")
|
||||
fdata = fdata.decode("utf-8")
|
||||
in_task_vars = json.loads(fdata)
|
||||
|
||||
# load expected final task vars
|
||||
outvarspath = os.path.join(fixturepath,
|
||||
outvarspath = os.path.join(fixturepath,
|
||||
test_meta.get('fixtures', {}).get('taskvars_out', 'taskvars_out.json'))
|
||||
with open(outvarspath, 'rb') as f:
|
||||
fdata = f.read()
|
||||
fdata = fdata.decode("utf-8")
|
||||
fdata = fdata.decode("utf-8")
|
||||
out_task_vars = json.loads(fdata)
|
||||
|
||||
# fixup the connection
|
||||
|
@ -164,7 +164,7 @@ class SynchronizeTester(object):
|
|||
in_task_vars['hostvars'][k] = v
|
||||
|
||||
# initalize and run the module
|
||||
SAM = ActionModule(self.task, self.connection, self._play_context,
|
||||
SAM = ActionModule(self.task, self.connection, self._play_context,
|
||||
self.loader, self.templar, self.shared_loader_obj)
|
||||
SAM._execute_module = self._execute_module
|
||||
result = SAM.run(task_vars=in_task_vars)
|
||||
|
|
|
@ -311,7 +311,7 @@ class TestStrategyBase(unittest.TestCase):
|
|||
strategy_base._blocked_hosts = dict()
|
||||
|
||||
def _has_dead_workers():
|
||||
return False
|
||||
return False
|
||||
|
||||
strategy_base._tqm.has_dead_workers.side_effect = _has_dead_workers
|
||||
results = strategy_base._wait_on_pending_results(iterator=mock_iterator)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue