HomeClusterLabs Projects

Refactor: python: Add helper functions for building XML.

Description

Refactor: python: Add helper functions for building XML.

Pull the for loops out into their own functions that build attribute
strings, and then wrap those in other functions that add the element
tags. This doesn't make for shorter code (especially not with the
docstrings), but I think it makes for easier to follow code.

Details

Provenance
clumensAuthored on Jun 29 2023, 1:36 PM
Parents
rP7cc7813b5522: Refactor: python: Rename most things in cibxml.py to be private.
Branches
Unknown
Tags
Unknown