Comment 8 for bug 1467573

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat (master)

Reviewed: https://review.openstack.org/223737
Committed: https://git.openstack.org/cgit/openstack/heat/commit/?id=99ae1702ffa6abcba909a2fb692b30163bcc8f5b
Submitter: Jenkins
Branch: master

commit 99ae1702ffa6abcba909a2fb692b30163bcc8f5b
Author: Steven Hardy <email address hidden>
Date: Tue Sep 15 18:59:09 2015 +0100

    Allow selectively disabling resource validation

    For template-validate to use the normal stack.validate code instead
    of reimplementing different validation logic, we need to disable
    the resource plugin validate() methods, because in nearly all cases
    these refer to resource property values, which don't exist at
    template-validate time, where parameters aren't mandatory.

    We do however want to ensure structural/syntax issues in the resource
    definition are caught as early as possible, so add a stack
    resource_validate attribute (defaulted to True) which enables selecting
    only the resource.Resource superclass validate logic, so we can defer
    the full value validation until create without maintaining completely
    separate logic.

    Change-Id: I501c8c36e923baa8d9b3f0395aaee41f7585ebb1
    Partial-Bug: #1467573