[DRE-commits] [vagrant-libvirt] 107/163: Use just awk to parse /proc/net/arp
Antonio Terceiro
terceiro at moszumanska.debian.org
Sun Apr 24 13:57:12 UTC 2016
This is an automated email from the git hooks/post-receive script.
terceiro pushed a commit to annotated tag 0.0.26
in repository vagrant-libvirt.
commit 06515b87f3edcb0b68b6360d09d74550493f28dc
Author: Kaushal M <kshlmster at gmail.com>
Date: Wed Feb 4 21:05:40 2015 +0530
Use just awk to parse /proc/net/arp
---
lib/vagrant-libvirt/action/connect_libvirt.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/vagrant-libvirt/action/connect_libvirt.rb b/lib/vagrant-libvirt/action/connect_libvirt.rb
index e18cfc3..fd5d9d8 100644
--- a/lib/vagrant-libvirt/action/connect_libvirt.rb
+++ b/lib/vagrant-libvirt/action/connect_libvirt.rb
@@ -30,7 +30,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[ grep $mac /proc/net/arp | awk '{print $1}' ]
+ ip_command = %q[ awk "/$mac/ {print \$1}" /proc/net/arp ]
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