1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Merge pull request #629 from rubiojr/add-env-var-to-ip-command

* Add server_name environment variable to ip_command
This commit is contained in:
Patrick Debois 2011-11-30 07:37:04 -08:00
commit f3edfb7713

View file

@ -289,7 +289,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