HomeClusterLabs Projects

Refactor: pengine: reduce code duplication when unpacking location constraints

Description

Refactor: pengine: reduce code duplication when unpacking location constraints

Certain error conditions were checked by both unpack_location() and
unpack_location_tags(). Now, it's done only in the latter (which the
former calls and checks).

This also simplifies the code to make it more readable.

Details

Provenance
kgaillotAuthored on Jun 9 2016, 12:27 PM
Parents
rP4693a15f9f1c: Test: cts: avoid kill usage error if DummySD stop called when already stopped
Branches
Unknown
Tags
Unknown

Event Timeline