Ticket #644 (closed defect: fixed)

Opened 14 months ago

Last modified 5 months 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

Changed 14 months 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.

Changed 5 months ago by desai

  • status changed from new to closed
  • resolution set to fixed

Fixed in [5500]

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

Add/Change #644 (Server should have a newline when inserting an entry in to client.xml)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.