Skip to content

Commit

Permalink
Fix: crm_shadow: Fix "crm_shadow --diff"
Browse files Browse the repository at this point in the history
  • Loading branch information
gao-yan committed May 18, 2015
1 parent 4442cca commit 00b20b8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tools/cib_shadow.c
Expand Up @@ -433,7 +433,14 @@ main(int argc, char **argv)
goto done;
}

xml_track_changes(new_config, NULL, new_config, FALSE);
xml_calculate_changes(old_config, new_config);

diff = xml_create_patchset(0, old_config, new_config, NULL, FALSE);

xml_log_changes(LOG_INFO, __FUNCTION__, new_config);
xml_accept_changes(new_config);

if (diff != NULL) {
xml_log_patchset(0, " ", diff);
rc = 1;
Expand Down

0 comments on commit 00b20b8

Please sign in to comment.