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:
commit
f3edfb7713
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue