Changeset eceb232a0ca323466109d4ea9846da08cdb90f10
- Timestamp:
- 08/04/10 02:11:40
(8 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
rf4664c3 |
receb232 |
|
93 | 93 | my $zonelist = run_command("$zoneadm list"); |
---|
94 | 94 | my @zones = grep {!/^global$/} split(/\n/, $zonelist); |
---|
| 95 | chomp $zones; |
---|
95 | 96 | my $zones = join(':', @zones); |
---|
96 | 97 | |
---|
… | … | |
114 | 115 | my @result = split(/:\s*/, $output); |
---|
115 | 116 | my $path = $result[1]; |
---|
116 | | my $dataset = $mounts->{$path}; |
---|
| 117 | chomp $path; |
---|
| 118 | |
---|
| 119 | my $dataset = $path; |
---|
117 | 120 | if ($dataset) { |
---|
118 | 121 | my $creation = run_command("$zfs get -H -o value -p creation $dataset"); |
---|
… | … | |
121 | 124 | } |
---|
122 | 125 | else { |
---|
123 | | $dataset = "Not a mountpoint"; |
---|
| 126 | $dataset = undef; |
---|
124 | 127 | } |
---|
125 | 128 | |
---|