Ask Your Question
0

the function 'schema_to_parameters_and_properties'

asked 2015-08-04 19:40:56 -0600

Sihan gravatar image

In https://github.com/openstack/heat/blo..., the function schema_to_parameters_and_properties does not support nested schema resource. Like

properties_schema = {
        FIXED_IPS: properties.Schema(
            properties.Schema.LIST,
            schema=properties.Schema(
                properties.Schema.MAP,
                schema={
                    FIXED_IP_SUBNET_ID: properties.Schema(
                        properties.Schema.STRING,
                    ),

                    FIXED_IP_SUBNET: properties.Schema(
                        properties.Schema.STRING,
                    ),

                    FIXED_IP_IP_ADDRESS: properties.Schema(
                        properties.Schema.STRING,
                    ),
                },
            ),
            default=[]
        )
}

That is my test version, things is simplified. But I can not convert the schema in correct format, because it does not care the nested schema.

So I think I may get wrong functions to look at, I am wondering how openstack solves this problem.

Thanks

Sihan

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-08-05 19:01:39 -0600

asalkeld gravatar image

Hi

It would be good to know what exactly you are trying to achieve.

But the main problem here is there is no such thing as structured parameters, so we can't really support converting structured properties.

https://github.com/openstack/heat/blo... https://github.com/openstack/heat/blo...

-Angus

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-08-04 19:40:56 -0600

Seen: 69 times

Last updated: Aug 05 '15