Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert the iso8601 tool to use formatted output #3459

Merged
merged 7 commits into from
May 20, 2024

Conversation

clumens
Copy link
Contributor

@clumens clumens commented May 13, 2024

No description provided.

Copy link
Contributor

@kgaillot kgaillot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looking good

tools/iso8601.c Outdated Show resolved Hide resolved
tools/iso8601.c Outdated Show resolved Hide resolved
cts/cli/regression.dates.exp Outdated Show resolved Hide resolved
This adds XML support as well, which is somewhat pointless since this
program doesn't really see a lot of use, but it's consistent with the
rest of our command line tools.

Additionally, here the XML output uses text nodes instead of putting
everything into attributes.  This is because the tool can potentially
output multiple messages, one after the other.  We never have all the
data we need at once, so using text nodes is a cleaner way to structure
the code.

Fixes T109
@clumens clumens force-pushed the iso8601 branch 2 times, most recently from 1a3118f to 089f5f7 Compare May 15, 2024 15:31
Now that we have a program whose name does not begin with crm_ doing XML
output, we need to update the regex to fix up the request= attribute.
@kgaillot kgaillot merged commit 86f45d2 into ClusterLabs:main May 20, 2024
1 check passed
@kgaillot
Copy link
Contributor

If you want to get this in 2.1.8, backport it to the 2.1 branch

@clumens clumens deleted the iso8601 branch May 21, 2024 18:24
@clumens
Copy link
Contributor Author

clumens commented May 21, 2024

If you want to get this in 2.1.8, backport it to the 2.1 branch

I don't really care one way or another. I don't think anyone uses it, so it's really just for consistency with all our other stuff.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants