-
Notifications
You must be signed in to change notification settings - Fork 348
Feature: tools: Use formatted output in crm_diff.c #3909
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
base: main
Are you sure you want to change the base?
Changes from all commits
9936127
e2cb3e4
ba537cb
e02acdb
aa0f968
8d9aa67
1fbf269
3591f40
8f208c7
c2fe4c3
83460fe
1439e9f
3d0633e
ce9842f
db7f615
283a4c1
40b4acb
2f46983
2ebf936
dfc1f8f
85c772e
f6781fc
3f06da9
2e7edd4
2e32afe
6c5b306
d36be6c
1e987c9
5cc0790
eddad0c
0394f59
22ae578
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<diff format="2"> | ||
<version> | ||
<source admin_epoch="0" epoch="1" num_updates="0"/> | ||
<target admin_epoch="0" epoch="1" num_updates="1"/> | ||
</version> | ||
<change operation="delete" path="/cib/configuration/comment" position="0"/> | ||
<change operation="delete" path="/cib/configuration/comment" position="1"/> | ||
<change operation="delete" path="/cib/configuration/comment" position="2"/> | ||
<change operation="delete" path="/cib/configuration/resources/comment" position="0"/> | ||
<change operation="delete" path="/cib/configuration/resources/primitive[@id='Fencing']/operations/op[@id='Fencing-start-0']"/> | ||
<change operation="modify" path="/cib/configuration/crm_config/cluster_property_set[@id='cib-bootstrap-options']/nvpair[@id='cib-bootstrap-options-cluster-name']"> | ||
<change-list> | ||
<change-attr name="value" operation="set" value="mycluster"/> | ||
<change-attr name="name" operation="set" value="cluster-name"/> | ||
</change-list> | ||
<change-result> | ||
<nvpair id="cib-bootstrap-options-cluster-name" value="mycluster" name="cluster-name"/> | ||
</change-result> | ||
</change> | ||
<change operation="create" path="/cib/configuration/nodes" position="4"> | ||
<node id="4" uname="node4"/> | ||
</change> | ||
<change operation="create" path="/cib/configuration" position="2"> | ||
<!-- test: add a new comment below this one --> | ||
</change> | ||
<change operation="create" path="/cib/configuration" position="3"> | ||
<!-- hello world --> | ||
</change> | ||
<change operation="create" path="/cib/configuration/resources" position="0"> | ||
<!-- test: modify this comment to say something different --> | ||
</change> | ||
<change operation="modify" path="/cib/configuration/resources/primitive[@id='Fencing']/instance_attributes[@id='Fencing-params']/nvpair[@id='Fencing-pcmk_host_list']"> | ||
<change-list> | ||
<change-attr name="value" operation="set" value="node1 node2 node3 node4"/> | ||
</change-list> | ||
<change-result> | ||
<nvpair id="Fencing-pcmk_host_list" name="pcmk_host_list" value="node1 node2 node3 node4"/> | ||
</change-result> | ||
</change> | ||
<change operation="modify" path="/cib/configuration/resources/primitive[@id='Fencing']/operations/op[@id='Fencing-monitor-120s']"> | ||
<change-list> | ||
<change-attr name="timeout" operation="set" value="120s"/> | ||
<change-attr name="name" operation="set" value="monitor"/> | ||
</change-list> | ||
<change-result> | ||
<op id="Fencing-monitor-120s" interval="120s" timeout="120s" name="monitor"/> | ||
</change-result> | ||
</change> | ||
<change operation="move" path="/cib/configuration/resources/primitive[@id='dummy']/instance_attributes[@id='dummy-params']/nvpair[@id='dummy-op_sleep']" position="1"/> | ||
<change operation="move" path="/cib/configuration/resources/primitive[@id='dummy']/instance_attributes[@id='dummy-params']/nvpair[@id='dummy-fake']" position="2"/> | ||
<change operation="modify" path="/cib/configuration/resources/primitive[@id='dummy']/operations/op[@id='dummy-monitor-5s']"> | ||
<change-list> | ||
<change-attr name="name" operation="set" value="monitor"/> | ||
<change-attr name="timeout" operation="unset"/> | ||
</change-list> | ||
<change-result> | ||
<op id="dummy-monitor-5s" interval="5s" name="monitor"/> | ||
</change-result> | ||
</change> | ||
<change operation="create" path="/cib/configuration" position="6"> | ||
<!-- test: move this comment to end of configuration --> | ||
</change> | ||
</diff> |
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* Copyright 2006-2024 the Pacemaker project contributors | ||
* Copyright 2006-2025 the Pacemaker project contributors | ||
* | ||
* The version control history for this file may have further details. | ||
* | ||
|
@@ -38,6 +38,7 @@ | |
|
||
#include <crm/lrmd.h> | ||
#include <crm/cluster/internal.h> | ||
#include <crm/common/cmdline_internal.h> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This will come as no surprise to you, but our include files are a mess. A lot of the internal includes in this list are also included by It may be worth one of us one day doing a PR that just straightens all this stuff out. Ugh. |
||
#include <crm/common/digest_internal.h> | ||
#include <crm/common/logging.h> | ||
#include <crm/common/logging_internal.h> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I might be missing something here... why can't these two just be
file.read()
?