diff options
author | kaustubh-d <kaustubh@clogeny.com> | 2013-07-31 05:01:22 -0700 |
---|---|---|
committer | adamedx <adamed@opscode.com> | 2013-09-23 16:02:49 -0700 |
commit | 93de51a59ee274d264477b7ae3cf035870b3f2c5 (patch) | |
tree | f5839bf966d7cf9b890b341c71a053615f4861d2 | |
parent | 24516f496147b98b08100912f3f69215a6ea8bc0 (diff) | |
download | ohai-93de51a59ee274d264477b7ae3cf035870b3f2c5.tar.gz |
fix regex for interface info.
-rw-r--r-- | lib/ohai/plugins/aix/network.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ohai/plugins/aix/network.rb b/lib/ohai/plugins/aix/network.rb index 524d7a08..66a7f690 100644 --- a/lib/ohai/plugins/aix/network.rb +++ b/lib/ohai/plugins/aix/network.rb @@ -56,7 +56,7 @@ end popen4("lsdev -Cc if") do |pid, stdin, stdout, stderr| stdin.close stdout.each do |line| - if line =~ /(\S+) (\S+)(\s+)(.+)/ + if line =~ /(\S+) (\S+)\s+(.+)/ interface = $1 iface[interface] = Mash.new unless iface[interface] iface[interface][:state] = ($2 == 'Available' ? 'up' : 'down') |