HomeClusterLabs Projects

Refactor: tools: don't overwrite original attr_id when updating attributes

Description

Refactor: tools: don't overwrite original attr_id when updating attributes

Previously, cli_resource_update_attribute() would remember the original attr_id
as common_attr_id, then reset attrd_id for each recursively updated resource.
Instead, keep the original attr_id throughout, and use a new rsc_attr_id
variable that can change per resource, to make the logic easier to follow.

Details

Provenance
kgaillotAuthored on Apr 10 2023, 12:12 PM
Parents
rPb3f55d941bab: Refactor: tools: improve variable names in attribute functions
Branches
Unknown
Tags
Unknown