Changeset eceb232a0ca323466109d4ea9846da08cdb90f10

Show
Ignore:
Timestamp:
08/04/10 02:11:40 (4 years ago)
Author:
Bryan Allen <ballen@omniti.com>
git-committer:
Bryan Allen <ballen@omniti.com> 1280887900 +0000
git-parent:

[82bf3c82cafbc741e1633cbabbeab33819302958]

git-author:
Bryan Allen <ballen@omniti.com> 1280887900 +0000
Message:

tid13333 newlines in zone array?

git-svn-id: https://labs.omniti.com/resmon/trunk@426 8c0face9-b7db-6ec6-c4b3-d5f7145c7d55

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • lib/Core/Zoneinfo.pm

    rf4664c3 receb232  
    9393    my $zonelist = run_command("$zoneadm list"); 
    9494    my @zones = grep {!/^global$/} split(/\n/, $zonelist); 
     95    chomp $zones; 
    9596    my $zones = join(':', @zones); 
    9697 
     
    114115            my @result = split(/:\s*/, $output); 
    115116            my $path = $result[1]; 
    116             my $dataset = $mounts->{$path}; 
     117            chomp $path; 
     118 
     119            my $dataset = $path; 
    117120            if ($dataset) { 
    118121              my $creation = run_command("$zfs get -H -o value -p creation $dataset"); 
     
    121124      } 
    122125            else { 
    123               $dataset = "Not a mountpoint"
     126              $dataset = undef
    124127            } 
    125128