Merge pull request #176 from robertalks/master
Fix is_virtual_machine function return, drop ENV{'HOSTNAME'} for host…
			
			
This commit is contained in:
		
						commit
						8414de8a4d
					
				
					 1 changed files with 4 additions and 4 deletions
				
			
		|  | @ -1057,7 +1057,7 @@ sub get_fs_info() { | ||||||
| } | } | ||||||
| sub is_virtual_machine() { | sub is_virtual_machine() { | ||||||
|   my $isVm=`grep -Ec '^flags.*\ hypervisor\ ' /proc/cpuinfo`; |   my $isVm=`grep -Ec '^flags.*\ hypervisor\ ' /proc/cpuinfo`; | ||||||
|   return ($isVm==0?1:0); |   return ($isVm==0?0:1); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | @ -1104,7 +1104,7 @@ if ($? == 0) { | ||||||
|   } |   } | ||||||
| infoprint "Operating System Type : ". infocmd_one "uname -o"; | infoprint "Operating System Type : ". infocmd_one "uname -o"; | ||||||
| infoprint "Kernel Release        : ". infocmd_one "uname -r"; | infoprint "Kernel Release        : ". infocmd_one "uname -r"; | ||||||
| infoprint "Hostname              : $ENV{'HOSTNAME'}"; | infoprint "Hostname              : ". infocmd_one "hostname"; | ||||||
| infoprint "Network Cards         : "; | infoprint "Network Cards         : "; | ||||||
| infocmd_tab "ifconfig| grep -A1 mtu"; | infocmd_tab "ifconfig| grep -A1 mtu"; | ||||||
| infoprint "Internal IP           : ". infocmd_one "hostname -I"; | infoprint "Internal IP           : ". infocmd_one "hostname -I"; | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue
	
	 Jean-Marie Renouard
						Jean-Marie Renouard