Bug 1175196
Summary: | "parse-environment" and "parse-environment-list" fail to parse "LIBGUESTFS_TRACE = 0" | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Chao Zhang <chazhang> |
Component: | libguestfs | Assignee: | Richard W.M. Jones <rjones> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | 7.1 | CC: | huzhan, leiwang, mbooth, ptoscano, wshi |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | libguestfs-1.28.1-1.25.el7 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-11-19 06:58:26 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: |
Description
Chao Zhang
2014-12-17 10:12:51 UTC
This is not really a bug, more of an RFE. Reproducer: guestfish setenv LIBGUESTFS_TRACE 1 : parse-environment : get-trace : setenv LIBGUESTFS_TRACE 0 : parse-environment : get-trace (all on one line) Before the change, it will print: true true After the change, it will print: true false Upstream commits: bdcd2fabe9a5ba6f61e662986fcd92e352f203c0 5f6677ebd0fd6f6712de808ca27eab4468f966bc f1ecd6af808f22af913a589754ae11dc1e35b658 Verified with libguestfs-1.28.1-1.29.el7. Step to verify: 1. # guestfish setenv LIBGUESTFS_TRACE 1 : parse-environment : get-trace : setenv LIBGUESTFS_TRACE 0 : parse-environment : get-trace libguestfs: trace: get_trace libguestfs: trace: get_trace = 1 true libguestfs: trace: parse_environment libguestfs: trace: set_trace false libguestfs: trace: set_trace = 0 libguestfs: trace: parse_environment = 0 false 2. # guestfish set-trace 1 : get-trace : parse-environment-list "LIBGUESTFS_TRACE=0" : get-trace : parse-environment-list "LIBGUESTFS_TRACE=1" : get-trace libguestfs: trace: get_trace libguestfs: trace: get_trace = 1 true libguestfs: trace: parse_environment_list "LIBGUESTFS_TRACE=0" libguestfs: trace: set_trace false libguestfs: trace: set_trace = 0 libguestfs: trace: parse_environment_list = 0 false libguestfs: trace: get_trace libguestfs: trace: get_trace = 1 true libguestfs: trace: shutdown libguestfs: trace: shutdown = 0 libguestfs: trace: close So "parse-environment" and "parse-environment-list" work as excepted. So fixed. 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-2183.html |