Bug 1100106

Summary: augtool builtin command `dump-xml` can not save the XML to a given file
Product: Red Hat Enterprise Linux 7 Reporter: Lingfei Kong <lkong>
Component: augeasAssignee: Dominic Cleal <dcleal>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: low    
Version: 7.0CC: leiwang, lkong, wshi, yuliu
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: augeas-1.1.0-13.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1100182 (view as bug list) Environment:
Last Closed: 2015-03-05 09:25:18 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1100182    

Description Lingfei Kong 2014-05-22 03:22:54 UTC
Description of problem:
augtool builtin command `dump-xml` can not save the XML to a given file

Version-Release number of selected component (if applicable):
augeas-1.1.0-12.el7

How reproducible:
100%

Steps to Reproduce:
1. Enter into augtool interactive model
2. Run the following command:
augtool> dump-xml /files/etc/ /root/save.xml
3. Check file /root/save.xml on host

Actual results:
File /root/save.xml didn't generated on the host

Expected results:
File /root/save.xml was generated on the host with the correct content


Additional info:

Comment 2 Dominic Cleal 2014-06-02 15:15:38 UTC
I've suggested this argument be removed from the documentation upstream:
https://github.com/hercules-team/augeas/pull/130

Comment 3 Dominic Cleal 2014-06-03 10:28:38 UTC
Rather than being fixed/implemented, the option has now been removed from the documentation (help output and the man page).

https://github.com/hercules-team/augeas/commit/e775e5f85183a76c584219b14963368a66171375

Comment 6 Lingfei Kong 2014-09-16 07:15:49 UTC
#augtool 
augtool> dump-xml /files/etc/ /root/save.xml
error: Failed to execute command
Too many arguments. Command dump-xml takes only 1 arguments
augtool> help dump-xml
  COMMAND
    dump-xml - print a subtree as XML

  SYNOPSIS
    dump-xml [<PATH>]

  DESCRIPTION
    Export entries in the tree as XML. If PATH is given, printing starts there,
    otherwise the whole tree is printed.

  OPTIONS
     <PATH>    print this subtree


option dump-xml remove the FILE parameter and when give two parameters to dump-xml it can give a proper error message. So, bug is fixed

Comment 8 errata-xmlrpc 2015-03-05 09:25:18 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-0399.html