Fix task order;Add default hostname value
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-08-18 12:44:08 +02:00
parent fdc5c44e6a
commit ccbd4ed984
2 changed files with 16 additions and 13 deletions

View File

@ -50,8 +50,8 @@ PropertyCategories:
- Key: guestinfo.hostname
Type: string(1..15)
Label: Hostname*
Description: '(max length: 15 characters)'
DefaultValue: ''
Description: ''
DefaultValue: 'META-NODE-{{ hostname.suffix }}'
Configurations: '*'
UserConfigurable: true
@ -151,6 +151,9 @@ AdvancedOptions:
---
Variables:
- Name: hostname.suffix
Expression: |
(-join ((48..57) + (97..122) | Get-Random -Count 5 | % {[char]$_})).ToUpper()
- Name: appliance.name
Expression: |
$Parameter['appliance.name']