Datatype as an input is not read correctly from file

Description

When using datatype that has default values, in a blueprint and overwriting only part of the properties in an input file, the other properties are missing from the node properties.
Definition

data_types:
datatype.connection:
properties:
username:
type: string
default: 'tester'
userpass:
type: string
default: "pwd"
api_version:
type: string
default: "v3.1"
manager_tenant:
type: string
default: "default_tenant"
secret_key:
type: string
required: true
default: "my_key"

Input file:

conn_config:
username: 'root'
userpass: "1234356"
api_version: "v8"
manager_tenant: "test_tenant"

secret_key property won't be part of the nodes properties:
Node properties:
ssl: True
connection_config: {u'username': u'root', u'userpass': u'123456', u'api_version': u'v8', u'manager_tenant': u'test_tenant'}
hosts: [u'10.73.11.246']
verify: False

When not all properties values are set in the input file, we must use the default values from the blueprint.

Steps to Reproduce

Environment:
OS (CLI), HA cluster, cloud provider
------------------------------------

Steps to reproduce:
------------------
1.
2.
3.

Expected result:
---------------

Actual result:
-------------

Why Propose Close?

None

Assignee

Mateusz Neumann

Reporter

Jonathan Abramsohn

Severity

Medium

Target Version

5.1

Premium Only

no

Found In Version

4.6

QA Owner

None

Bug Type

legacy bug

Customer Encountered

Yes

Customer Name

c689

Release Notes

yes

Priority

None

Epic Link

Sprint

None

Priority

Unprioritized
Configure