Ticket #644 (closed defect: fixed)

Opened 14 years ago

Last modified 14 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:


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.


Change History

comment:1 Changed 14 years ago by kisielk

I think by switching out



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

in 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 14 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.


Add a comment

Modify Ticket

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

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

Note: See TracTickets for help on using tickets.