#361: httpd.lns - augeas set value with whitespace failed
-------------------------+--------------------
  Reporter:  kwreczycki  |      Owner:  lutter
      Type:  defect      |     Status:  new
  Priority:  major       |  Milestone:  0.10.0
 Component:  Augeas      |    Version:  1.0.0
Resolution:              |   Keywords:
Blocked By:              |   Blocking:
-------------------------+--------------------

Comment (by fgiraldeau):

 The "arg" is actually a list. Each argument should be enumerated:
 {{{
 defvar conf /files/etc/apache2/sites-available/foo
 clear $conf/VirtualHost
 set $conf/VirtualHost/arg "172.16.0.1:80"
 set $conf/VirtualHost/directive "FastCgiExternalServer"
 set $conf/VirtualHost/*[self::directive='FastCgiExternalServer']/arg[0]
 "/usr/lib/cgi-bin/php5-fcgi"
 set $conf/VirtualHost/*[self::directive='FastCgiExternalServer']/arg[1]
 "-socket"
 set $conf/VirtualHost/*[self::directive='FastCgiExternalServer']/arg[2]
 "/var/run/php5-fpm.sock"
 set $conf/VirtualHost/*[self::directive='FastCgiExternalServer']/arg[3]
 "-pass-header"   set
 $conf/VirtualHost/*[self::directive='FastCgiExternalServer']/arg[4]
 "Authorization"
 }}}
 It produces the following file:
 {{{
 <VirtualHost 172.16.0.1:80>
 FastCgiExternalServer -socket /var/run/php5-fpm.sock -pass-header
 Authorization
 </VirtualHost>
 }}}

-- 
Ticket URL: <https://fedorahosted.org/augeas/ticket/361#comment:3>
Augeas <http://augeas.net/>
a configuration API

_______________________________________________
augeas-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/augeas-devel

Reply via email to