mirror of
https://github.com/ansible/awx.git
synced 2026-01-18 05:01:19 -03:30
Fix VMware capitalization
This commit is contained in:
parent
c028b2fce8
commit
c4825dbf6c
@ -176,7 +176,7 @@ class Credential(PasswordFieldsModel, CommonModelNameNotUnique):
|
||||
"""
|
||||
host = self.host or ''
|
||||
if not host and self.kind == 'vmware':
|
||||
raise ValidationError('Host required for VMWare credential.')
|
||||
raise ValidationError('Host required for VMware credential.')
|
||||
return host
|
||||
|
||||
def clean_username(self):
|
||||
@ -187,7 +187,7 @@ class Credential(PasswordFieldsModel, CommonModelNameNotUnique):
|
||||
raise ValidationError('Username required for Rackspace '
|
||||
'credential.')
|
||||
if not username and self.kind == 'vmware':
|
||||
raise ValidationError('Username required for VMWare credential.')
|
||||
raise ValidationError('Username required for VMware credential.')
|
||||
return username
|
||||
|
||||
def clean_password(self):
|
||||
@ -197,7 +197,7 @@ class Credential(PasswordFieldsModel, CommonModelNameNotUnique):
|
||||
if not password and self.kind == 'rax':
|
||||
raise ValidationError('API key required for Rackspace credential.')
|
||||
if not password and self.kind == 'vmware':
|
||||
raise ValidationError('Password required for VMWare credential.')
|
||||
raise ValidationError('Password required for VMware credential.')
|
||||
return password
|
||||
|
||||
def _validate_ssh_private_key(self, data):
|
||||
|
||||
@ -757,7 +757,7 @@ class InventorySourceOptions(BaseModel):
|
||||
('ec2', _('Amazon EC2')),
|
||||
('gce', _('Google Compute Engine')),
|
||||
('azure', _('Microsoft Azure')),
|
||||
('vmware', _('VMWare')),
|
||||
('vmware', _('VMware')),
|
||||
]
|
||||
|
||||
class Meta:
|
||||
@ -858,8 +858,8 @@ class InventorySourceOptions(BaseModel):
|
||||
|
||||
@classmethod
|
||||
def get_vmware_region_choices(self):
|
||||
"""Return a complete list of regions in VMWare, as a list of two-tuples
|
||||
(but note that VMWare doesn't actually have regions!).
|
||||
"""Return a complete list of regions in VMware, as a list of two-tuples
|
||||
(but note that VMware doesn't actually have regions!).
|
||||
"""
|
||||
return [('all', 'All')]
|
||||
|
||||
|
||||
@ -210,7 +210,7 @@ if __name__ == '__main__':
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
# If any of the VMWare environment variables are set, they trump
|
||||
# If any of the VMware environment variables are set, they trump
|
||||
# the INI configuration.
|
||||
if 'VMWARE_HOST' in os.environ:
|
||||
auth_host = os.environ['VMWARE_HOST']
|
||||
@ -219,7 +219,7 @@ if __name__ == '__main__':
|
||||
if 'VMWARE_PASSWORD' in os.environ:
|
||||
auth_password = os.environ['VMWARE_PASSWORD']
|
||||
|
||||
# Create the VMWare client.
|
||||
# Create the VMware client.
|
||||
client = Client(auth_host, auth_user, auth_password)
|
||||
|
||||
# Actually do the work.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user