Skip to content

utils.shlex_split removing quotes which are required for augeas #34640

Closed

Description

@nevins-b

When using aegus.change it appears that the utils.shlex_split function is stripping quotes from the command which make augeas fail.

Setup

shm-mount-options:
  augeas.change:
    - lens: Fstab.lns
    - changes:
      - ins opt after /files/etc/fstab/*[spec="tmpfs"]/opt[last()]
      - set /files/etc/fstab/*[spec="tmpfs"]/opt[last()] nodev
    - unless: 'grep -e "^tmpfs.*defaults,nodev" /etc/fstab'

Steps to Reproduce Issue

With some additional logging added the issue is apparent that the double quotes have been stripped from the path.
{'path': '/files/etc/fstab/*[file=/tmp]/opt[last()]', 'before': False, 'label': 'opt'}

Activity

  1. changed the title [-]utils.shlex_split removing quotes which are required for aegus[/-] [+]utils.shlex_split removing quotes which are required for augeas[/+] on Jul 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions