parent
8316fa66e8
commit
548fa65ac6
2 changed files with 4 additions and 1 deletions
|
@ -0,0 +1,2 @@
|
||||||
|
bugfixes:
|
||||||
|
- vmware_guest - Allow '-' (Dash) special char in windows DNS name.
|
|
@ -1813,7 +1813,8 @@ class PyVmomiHelper(PyVmomi):
|
||||||
ident.userData.computerName = vim.vm.customization.FixedName()
|
ident.userData.computerName = vim.vm.customization.FixedName()
|
||||||
# computer name will be truncated to 15 characters if using VM name
|
# computer name will be truncated to 15 characters if using VM name
|
||||||
default_name = self.params['name'].replace(' ', '')
|
default_name = self.params['name'].replace(' ', '')
|
||||||
default_name = ''.join([c for c in default_name if c not in string.punctuation])
|
punctuation = string.punctuation.replace('-', '')
|
||||||
|
default_name = ''.join([c for c in default_name if c not in punctuation])
|
||||||
ident.userData.computerName.name = str(self.params['customization'].get('hostname', default_name[0:15]))
|
ident.userData.computerName.name = str(self.params['customization'].get('hostname', default_name[0:15]))
|
||||||
ident.userData.fullName = str(self.params['customization'].get('fullname', 'Administrator'))
|
ident.userData.fullName = str(self.params['customization'].get('fullname', 'Administrator'))
|
||||||
ident.userData.orgName = str(self.params['customization'].get('orgname', 'ACME'))
|
ident.userData.orgName = str(self.params['customization'].get('orgname', 'ACME'))
|
||||||
|
|
Loading…
Reference in a new issue