bugfix: wrong data type
the type of ntp_server, repo_name is defined as dropdown, change them to string Change-Id: Ifd6198f4ae6e47d1f284cf8de41984b19613bb30 Signed-off-by: baigk <baiguoku@huawei.com>
This commit is contained in:
parent
9c54aae1d0
commit
a02386549e
1
conf/os_field/string.conf
Normal file
1
conf/os_field/string.conf
Normal file
@ -0,0 +1 @@
|
||||
NAME = 'string'
|
@ -57,7 +57,7 @@ METADATA = {
|
||||
'ntp_server': {
|
||||
'_self': {
|
||||
'is_required': True,
|
||||
'field': 'general',
|
||||
'field': 'string',
|
||||
'default_callback': default_ntp_server,
|
||||
'options_callback': ntp_server_options,
|
||||
'mapping_to': 'ntp_server'
|
||||
@ -105,7 +105,7 @@ METADATA = {
|
||||
},
|
||||
'repo_name': {
|
||||
'_self': {
|
||||
'field': 'general',
|
||||
'field': 'string',
|
||||
'is_required': True,
|
||||
'mapping_to': 'repo_name'
|
||||
}
|
||||
@ -114,6 +114,10 @@ METADATA = {
|
||||
'_self': {
|
||||
'field': 'general',
|
||||
'is_required': True,
|
||||
'default_value': 'baremetal',
|
||||
'options': [
|
||||
'baremetal', 'virtul'
|
||||
],
|
||||
'mapping_to': 'deploy_type'
|
||||
}
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user