From 84a8559ea095e6468ae7c1454138f3e69ec4d5af Mon Sep 17 00:00:00 2001 From: Jake McDermott Date: Tue, 10 Sep 2019 11:46:45 -0400 Subject: [PATCH] psuedo -> pseudo --- awx/api/serializers.py | 4 ++-- awx/main/models/jobs.py | 4 ++-- awx/main/tasks.py | 4 ++-- awx/main/utils/common.py | 6 +++--- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/awx/api/serializers.py b/awx/api/serializers.py index 3ebbe55ecb..c7a322489b 100644 --- a/awx/api/serializers.py +++ b/awx/api/serializers.py @@ -3357,7 +3357,7 @@ class WorkflowJobTemplateSerializer(JobTemplateMixin, LabelsListMixin, UnifiedJo setattr(mock_obj, field_name, attrs[field_name]) attrs.pop(field_name) - # Model `.save` needs the container dict, not the psuedo fields + # Model `.save` needs the container dict, not the pseudo fields if mock_obj.char_prompts: attrs['char_prompts'] = mock_obj.char_prompts @@ -3617,7 +3617,7 @@ class LaunchConfigurationBaseSerializer(BaseSerializer): if errors: raise serializers.ValidationError(errors) - # Model `.save` needs the container dict, not the psuedo fields + # Model `.save` needs the container dict, not the pseudo fields if mock_obj.char_prompts: attrs['char_prompts'] = mock_obj.char_prompts diff --git a/awx/main/models/jobs.py b/awx/main/models/jobs.py index 0fc9a95d68..a6395c495b 100644 --- a/awx/main/models/jobs.py +++ b/awx/main/models/jobs.py @@ -39,7 +39,7 @@ from awx.main.models.notifications import ( NotificationTemplate, JobNotificationMixin, ) -from awx.main.utils import parse_yaml_or_json, getattr_dne, NullablePromptPsuedoField +from awx.main.utils import parse_yaml_or_json, getattr_dne, NullablePromptPseudoField from awx.main.fields import ImplicitRoleField, JSONField, AskForField from awx.main.models.mixins import ( ResourceMixin, @@ -903,7 +903,7 @@ for field_name in JobTemplate.get_ask_mapping().keys(): try: LaunchTimeConfigBase._meta.get_field(field_name) except FieldDoesNotExist: - setattr(LaunchTimeConfigBase, field_name, NullablePromptPsuedoField(field_name)) + setattr(LaunchTimeConfigBase, field_name, NullablePromptPseudoField(field_name)) class LaunchTimeConfig(LaunchTimeConfigBase): diff --git a/awx/main/tasks.py b/awx/main/tasks.py index cccf2b4fd7..a9308df432 100644 --- a/awx/main/tasks.py +++ b/awx/main/tasks.py @@ -2235,7 +2235,7 @@ class RunInventoryUpdate(BaseTask): getattr(settings, '%s_INSTANCE_ID_VAR' % src.upper()),]) # Add arguments for the source inventory script args.append('--source') - args.append(self.psuedo_build_inventory(inventory_update, private_data_dir)) + args.append(self.pseudo_build_inventory(inventory_update, private_data_dir)) if src == 'custom': args.append("--custom") args.append('-v%d' % inventory_update.verbosity) @@ -2246,7 +2246,7 @@ class RunInventoryUpdate(BaseTask): def build_inventory(self, inventory_update, private_data_dir): return None # what runner expects in order to not deal with inventory - def psuedo_build_inventory(self, inventory_update, private_data_dir): + def pseudo_build_inventory(self, inventory_update, private_data_dir): """Inventory imports are ran through a management command we pass the inventory in args to that command, so this is not considered to be "Ansible" inventory (by runner) even though it is diff --git a/awx/main/utils/common.py b/awx/main/utils/common.py index 6b76faa6f4..26f1afe800 100644 --- a/awx/main/utils/common.py +++ b/awx/main/utils/common.py @@ -47,7 +47,7 @@ __all__ = ['get_object_or_400', 'camelcase_to_underscore', 'underscore_to_camelc 'get_current_apps', 'set_current_apps', 'extract_ansible_vars', 'get_search_fields', 'get_system_task_capacity', 'get_cpu_capacity', 'get_mem_capacity', 'wrap_args_with_proot', 'build_proot_temp_dir', 'check_proot_installed', 'model_to_dict', - 'NullablePromptPsuedoField', 'model_instance_diff', 'parse_yaml_or_json', 'RequireDebugTrueOrTest', + 'NullablePromptPseudoField', 'model_instance_diff', 'parse_yaml_or_json', 'RequireDebugTrueOrTest', 'has_model_field_prefetched', 'set_environ', 'IllegalArgumentError', 'get_custom_venv_choices', 'get_external_account', 'task_manager_bulk_reschedule', 'schedule_task_manager', 'classproperty', 'create_temporary_fifo'] @@ -448,9 +448,9 @@ class CharPromptDescriptor: self.field = field -class NullablePromptPsuedoField: +class NullablePromptPseudoField: """ - Interface for psuedo-property stored in `char_prompts` dict + Interface for pseudo-property stored in `char_prompts` dict Used in LaunchTimeConfig and submodels, defined here to avoid circular imports """ def __init__(self, field_name):