[DRE-commits] [vagrant-libvirt] 32/77: Modified ip_command for zsh compatibility
Antonio Terceiro
terceiro at moszumanska.debian.org
Sun Apr 24 13:56:35 UTC 2016
This is an automated email from the git hooks/post-receive script.
terceiro pushed a commit to annotated tag 0.0.17
in repository vagrant-libvirt.
commit 84ecab8b9c81a97692d55782c2317244496cb165
Author: Sergio Jimenez <tripledes at gmail.com>
Date: Sat Mar 29 16:09:02 2014 +0100
Modified ip_command for zsh compatibility
---
lib/vagrant-libvirt/action/connect_libvirt.rb | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/lib/vagrant-libvirt/action/connect_libvirt.rb b/lib/vagrant-libvirt/action/connect_libvirt.rb
index 5488e2c..3cbf7e0 100644
--- a/lib/vagrant-libvirt/action/connect_libvirt.rb
+++ b/lib/vagrant-libvirt/action/connect_libvirt.rb
@@ -70,8 +70,7 @@ module VagrantPlugins
# Setup command for retrieving IP address for newly created machine
# with some MAC address. Get it from dnsmasq leases table
- ip_command = %q[ LEASES=$(find /var/lib/libvirt/dnsmasq/ /var/lib/misc/ -name '*leases'); ]
- ip_command << %q[ [ -n "$LEASES" ] && grep $mac $LEASES | awk '{ print $3 }' ]
+ ip_command = %q[ find /var/lib/libvirt/dnsmasq/ /var/lib/misc/ -name '*leases' -exec grep $mac {} \; | cut -d' ' -f3 ]
conn_attr[:libvirt_ip_command] = ip_command
@logger.info("Connecting to Libvirt (#{uri}) ...")
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/vagrant-libvirt.git
More information about the Pkg-ruby-extras-commits
mailing list