Skip to content

Instantly share code, notes, and snippets.

@dmzoneill
Last active February 28, 2024 09:19
Show Gist options
  • Save dmzoneill/daef323146469618c550241f35e4b503 to your computer and use it in GitHub Desktop.
Save dmzoneill/daef323146469618c550241f35e4b503 to your computer and use it in GitHub Desktop.
AWX Strings 1
[daoneill@fedora awx]$ grep -r "= str(.*)" --exclude-dir=.tox *
awx/main/models/credential/injectors.py: env['VMWARE_VALIDATE_CERTS'] = str(settings.VMWARE_VALIDATE_CERTS)
awx/main/models/inventory.py: injected_env['INVENTORY_UPDATE_ID'] = str(inventory_update.pk) # so injector knows this is inventory
awx/main/models/inventory.py: ret['ANSIBLE_JINJA2_NATIVE'] = str(True)
awx/main/models/inventory.py: ret['ANSIBLE_JINJA2_NATIVE'] = str(True)
awx/main/models/inventory.py: ret['ANSIBLE_JINJA2_NATIVE'] = str(True)
awx/main/models/schedules.py: if str(zone_name) != str(zone_instance.zones[zone_name]._filename):
awx/main/models/projects.py: scm_url = str(self.scm_url or '')
awx/main/notifications/webhook_backend.py: url = str(m.recipients()[0])
awx/main/signals.py: sender_name = str(sender._meta.verbose_name)
awx/main/analytics/collectors.py: query_info['last_run'] = str(since)
awx/main/analytics/collectors.py: query_info['current_time'] = str(until)
awx/main/tasks/system.py: new_unified_job.job_explanation = str(invalid_license)
awx/main/tasks/jobs.py: env[attr] = str(getattr(settings, attr))
awx/main/tasks/jobs.py: env[key] = str(value)
awx/main/tasks/jobs.py: self.runner_callback.job_created = str(self.instance.created)
awx/main/tasks/jobs.py: env['JOB_ID'] = str(job.pk)
awx/main/tasks/jobs.py: env['INVENTORY_ID'] = str(job.inventory.pk)
awx/main/tasks/jobs.py: env['MAX_EVENT_RES'] = str(settings.MAX_EVENT_RES_DATA)
awx/main/tasks/jobs.py: env['ANSIBLE_NET_AUTHORIZE'] = str(int(authorize))
awx/main/tasks/jobs.py: env['ANSIBLE_RETRY_FILES_ENABLED'] = str(False)
awx/main/tasks/jobs.py: env['ANSIBLE_ASK_PASS'] = str(False)
awx/main/tasks/jobs.py: env['ANSIBLE_BECOME_ASK_PASS'] = str(False)
awx/main/tasks/jobs.py: env['PROJECT_UPDATE_ID'] = str(project_update.pk)
awx/main/tasks/jobs.py: env['ANSIBLE_GALAXY_IGNORE'] = str(True)
awx/main/tasks/jobs.py: env['INVENTORY_SOURCE_ID'] = str(inventory_update.inventory_source_id)
awx/main/tasks/jobs.py: env['INVENTORY_UPDATE_ID'] = str(inventory_update.pk)
awx/main/tasks/jobs.py: env[str(env_k)] = str(inventory_update.source_vars_dict[env_k])
awx/main/tasks/jobs.py: env['AD_HOC_COMMAND_ID'] = str(ad_hoc_command.pk)
awx/main/tasks/jobs.py: env['INVENTORY_ID'] = str(ad_hoc_command.inventory.pk)
awx/main/tasks/jobs.py: env['INVENTORY_HOSTVARS'] = str(True)
awx/main/tasks/receptor.py: stdout = str(stdout, encoding='utf-8')
awx/main/utils/licensing.py: verify = str(self.config.get("rhsm", "repo_ca_cert"))
awx/main/utils/licensing.py: port = str(self.config.get("server", "port"))
awx/main/utils/named_url_graph.py: text = str(text) # needed for WFJT node creation, identifier temporarily UUID4 type
awx/main/utils/filters.py: filter_string = str(filter_string)
awx/main/utils/common.py: data_type = str(vars_type)
awx/main/utils/common.py: start_timestamp = str(start)
awx/main/utils/common.py: end_timestamp = str(end)
awx/main/migrations/0101_v370_generate_new_uuids_for_iso_nodes.py: instance.uuid = str(uuid4())
awx/main/migrations/_inventory_source_vars.py: ret[k] = str(v)
awx/main/tests/unit/test_redact.py: cleartext += str(uri) + ' '
awx/main/tests/unit/test_redact.py: cleartext += str(uri) + '\n'
awx/main/tests/unit/test_redact.py: cleartext += str(uri) + ' '
awx/main/tests/unit/test_redact.py: cleartext += str(uri) + '\n'
awx/main/tests/unit/test_tasks.py: assert env['TURBO_BUTTON'] == str(True)
awx/main/tests/unit/test_tasks.py: assert env['JOB_ID'] == str(job.pk)
awx/main/tests/unit/utils/test_filters.py: assert str(q) == str(q_expected)
awx/main/tests/unit/utils/test_filters.py: assert str(q) == str(q_expected)
awx/main/tests/unit/utils/test_filters.py: assert str(q) == str(q_expected)
awx/main/tests/unit/utils/test_filters.py: assert str(q) == str(q_expected)
awx/main/tests/unit/utils/test_filters.py: assert str(q) == str(q_expected)
awx/main/tests/unit/utils/test_filters.py: assert str(q) == str(q_expected)
awx/main/tests/unit/utils/test_filters.py: assert str(q) == str(q_expected)
awx/main/tests/unit/utils/test_execution_environments.py: rand_str = str(uuid4())[:8]
awx/main/tests/unit/utils/test_common.py: message = str(exc.value)
awx/main/tests/unit/utils/test_common.py: message = str(exc.value)
awx/main/tests/unit/utils/test_common.py: key = str(uuid4())
awx/main/tests/unit/utils/test_common.py: assert str(excinfo.value) == str(expected)
awx/main/tests/unit/test_db.py: tmpdir = str(tmpdir)
awx/main/tests/unit/test_db.py: tmpdir = str(tmpdir)
awx/main/tests/docs/test_swagger_generation.py: status_code = str(status_code)
awx/main/tests/functional/commands/test_inventory_import.py: os.environ['INVENTORY_SOURCE_ID'] = str(inv_src2.pk)
awx/main/tests/functional/commands/test_inventory_import.py: os.environ['INVENTORY_UPDATE_ID'] = str(inv_src2.create_unified_job().pk)
awx/main/tests/functional/models/test_job.py: assert 'single-host changed=1 dark=2 failures=3 ignored=4 ok=5 processed=6 rescued=7 skipped=8' == str(jhs)
awx/main/tests/functional/models/test_job.py: assert 'N/A changed=1 dark=2 failures=3 ignored=4 ok=5 processed=6 rescued=7 skipped=8' == str(jhs)
awx/main/tests/functional/models/test_schedule.py: assert str(s.next_run) == str(s.dtstart) == '2030-01-12 21:00:00+00:00'
awx/main/tests/functional/models/test_schedule.py: assert str(s.next_run) == str(s.dtstart) == str(s.dtend) == '2030-01-12 21:00:00+00:00'
awx/main/tests/functional/models/test_schedule.py: assert str(s.next_run) == str(s.dtstart) == str(s.dtend) == '2030-01-13 02:00:00+00:00'
awx/main/tests/functional/models/test_schedule.py: assert str(s.next_run) == str(s.dtstart)
awx/main/tests/functional/models/test_schedule.py: assert str(s.next_run) == str(s.dtstart)
awx/main/tests/functional/models/test_schedule.py: assert str(s.next_run) == str(s.dtstart)
awx/main/tests/functional/models/test_schedule.py: assert str(s.next_run) == str(s.dtstart)
awx/main/tests/functional/models/test_schedule.py: assert str(s.next_run) == str(s.dtstart)
awx/main/tests/functional/conftest.py: response.data[key] = str(value)
awx/main/tests/functional/test_licenses.py: version = str(parsed_requirement.requirement.specifier)
awx/main/tests/functional/test_licenses.py: (name, version) = str(parsed_requirement.requirement).split('==', 1)
awx/main/dispatch/pool.py: body['uuid'] = str(uuid4())
awx/main/scheduler/task_manager.py: task.celery_task_id = str(uuid.uuid4())
awx/main/management/commands/inventory_import.py: enabled = bool(str(enabled_value).lower() == str(enabled).lower())
awx/main/management/commands/check_db.py: version = str(cursor.fetchone()[0])
awx/sso/middleware.py: msg = str(exception)
awx/sso/tests/functional/test_social_base_pipeline.py: assert f'An account cannot be found for {expected_id}' == str(e.value)
awx/api/views/__init__.py: message = str(a.reason)
awx/api/views/__init__.py: message = str(a.reason)
awx/api/swagger.py: link.__dict__['topic'] = str(self.view.swagger_topic).title()
awx/api/swagger.py: link.__dict__['topic'] = str(serializer.Meta.model._meta.verbose_name_plural).title()
awx/api/swagger.py: link.__dict__['topic'] = str(self.view.model._meta.verbose_name_plural).title()
awx/api/serializers.py: node['identifier'] = str(uuid4())
awx/api/renderers.py: data = str(data)
awx/conf/registry.py: field_instance.help_text = str(_('This value has been set manually in a settings file.')) + '\n\n' + str(field_instance.help_text)
awx_collection/plugins/lookup/schedule_rruleset.py: generated_rule = str(rrule.rrule(**rrule_kwargs))
awx_collection/plugins/lookup/schedule_rrule.py: return_rrule = str(my_rule).replace('\n', ' ').replace('DTSTART:', 'DTSTART;TZID={0}:'.format(timezone))
awx_collection/plugins/lookup/controller_api.py: return_data = str(return_data['id'])
awx_collection/test/awx/test_ad_hoc_wait.py: assert result.pop('finished', '')[:10] == str(command.finished)[:10]
awx_collection/test/awx/test_ad_hoc_wait.py: assert result.pop('started', '')[:10] == str(command.started)[:10]
awx_collection/test/awx/test_ad_hoc_wait.py: assert result.pop('finished', '')[:10] == str(command.finished)[:10]
awx_collection/test/awx/test_ad_hoc_wait.py: assert result.pop('started', '')[:10] == str(command.started)[:10]
awx_collection/test/awx/test_job.py: assert result.pop('finished', '')[:10] == str(job.finished)[:10]
awx_collection/test/awx/test_job.py: assert result.pop('started', '')[:10] == str(job.started)[:10]
awx_collection/test/awx/test_job.py: assert result.pop('finished', '')[:10] == str(job.finished)[:10]
awx_collection/test/awx/test_job.py: assert result.pop('started', '')[:10] == str(job.started)[:10]
awx_collection/test/awx/test_module_utils.py: slug = str(org_by_id.id)
awxkit/test/test_utils.py: date = str(now.date()).replace('-', '')
awxkit/test/test_utils.py: time = str(now.time()).split('.')[0].replace(':', '')
awxkit/awxkit/api/pages/workflow_jobs.py: msg += str(e)
awxkit/awxkit/api/pages/unified_jobs.py: tb = str(self.result_traceback)
awxkit/awxkit/api/resources.py: api = str(config.api_base_path)
tools/scripts/post_webhook.py: data_bytes = str(json.dumps(post_data)).encode('utf-8', 'strict')
tools/scripts/compilemessages.py: s = str(s, encoding, errors)
tools/scripts/compilemessages.py: s = str(s)
tools/scripts/firehose.py:u = str(uuid4())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment