Modify

Ticket #644 (closed defect: fixed)

Opened 9 years ago

Last modified 8 years ago

Server should have a newline when inserting an entry in to client.xml

Reported by: kisielk Owned by: desai
Priority: minor Milestone: Bcfg2 1.0.0 Release
Component: bcfg2-server Version: 1.0
Keywords: Cc:

Description

Currently all the <Client> tags are put on one line. This makes editing the file with a text editor a pain. If the server inserted a newline after each entry, the file would be much cleaner.

Attachments

Change History

comment:1 Changed 9 years ago by kisielk

I think by switching out

tree.write(client_tree)

to

client_tree.write(lxml.etree.tostring(tree, pretty_print=True))

in Metadata.py then this is pretty much achieved. It will remove any custom formatting that may be there, but I think it's better than the alternative. The file is mostly machine-managed anyway, this just makes it easier to go in and tweak profile, etc.

comment:2 Changed 8 years ago by desai

  • Status changed from new to closed
  • Resolution set to fixed

WARNING! You need to establish a session before you can create or edit tickets. Otherwise the ticket will get treated as spam.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.