Re: [ClusterLabs] no final newline from "crm configure show"

2016-11-23 Thread Dejan Muhamedagic
Hi,

On Wed, Nov 09, 2016 at 02:49:02PM +0100, Ulrich Windl wrote:
> Hi!
> 
> I just found a minor problem when redirecting the output of
> "crm configure show" to a file for archiving purposes: If you

Better use 'configure save' for archive/backup. 'configure show'
is really meant for the terminal.

> use diff to compare two files, diff complains about a missing
> newline (especially after having edited the other file with
> vim). For XML output the final newline is there. Is that an
> omission? Or is it related that my last entry is an acl_target?

I doubt that it depends on the last entry. But if 'save' doesn't
work, just open an issue at github.

Regards,

Dejan

> 
> Regards,
> Ulrich
> 
> 
> 
> ___
> Users mailing list: Users@clusterlabs.org
> http://clusterlabs.org/mailman/listinfo/users
> 
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org

___
Users mailing list: Users@clusterlabs.org
http://clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org


[ClusterLabs] no final newline from "crm configure show"

2016-11-09 Thread Ulrich Windl
Hi!

I just found a minor problem when redirecting the output of "crm configure 
show" to a file for archiving purposes: If you use diff to compare two files, 
diff complains about a missing newline (especially after having edited the 
other file with vim). For XML output the final newline is there. Is that an 
omission? Or is it related that my last entry is an acl_target?

Regards,
Ulrich



___
Users mailing list: Users@clusterlabs.org
http://clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org