From 4ddee13d29eae65646ac2b09dcdbc21a113a5296 Mon Sep 17 00:00:00 2001 From: Sergio Rubio Date: Wed, 30 Nov 2011 12:10:46 +0100 Subject: [PATCH] * Add server_name environment variable to ip_command --- lib/fog/libvirt/models/compute/server.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fog/libvirt/models/compute/server.rb b/lib/fog/libvirt/models/compute/server.rb index 31df6638c..89e03aa31 100644 --- a/lib/fog/libvirt/models/compute/server.rb +++ b/lib/fog/libvirt/models/compute/server.rb @@ -282,7 +282,7 @@ module Fog ip_command_global=@connection.ip_command.nil? ? 'grep $mac /var/log/arpwatch.log|sed -e "s/new station//"|sed -e "s/changed ethernet address//g" |sed -e "s/reused old ethernet //" |tail -1 |cut -d ":" -f 4-| cut -d " " -f 3' : @connection.ip_command ip_command_local=options[:ip_command].nil? ? ip_command_global : options[:ip_command] - ip_command="mac=#{mac}; "+ip_command_local + ip_command="mac=#{mac}; server_name=#{name}; "+ip_command_local ip_address=nil