Remove unused functionality
Signed-off-by: Michael Rasmussen <mir@datanom.net>
This commit is contained in:
committed by
Dietmar Maurer
parent
795db43103
commit
98735f827a
@ -47,12 +47,7 @@ sub zfs_request {
|
|||||||
$zfscmd = 'zfs';
|
$zfscmd = 'zfs';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($scfg->{sudo}) {
|
|
||||||
$zfscmd = 'sudo ' . $zfscmd;
|
|
||||||
$target = $scfg->{portal};
|
|
||||||
} else {
|
|
||||||
$target = 'root@' . $scfg->{portal};
|
$target = 'root@' . $scfg->{portal};
|
||||||
}
|
|
||||||
|
|
||||||
my $cmd = [@ssh_cmd, $target, $zfscmd, $method, @params];
|
my $cmd = [@ssh_cmd, $target, $zfscmd, $method, @params];
|
||||||
|
|
||||||
@ -306,22 +301,10 @@ sub plugindata {
|
|||||||
|
|
||||||
sub properties {
|
sub properties {
|
||||||
return {
|
return {
|
||||||
chap => {
|
|
||||||
description => "chap",
|
|
||||||
type => 'string',
|
|
||||||
},
|
|
||||||
pwd => {
|
|
||||||
description => "password",
|
|
||||||
type => 'string',
|
|
||||||
},
|
|
||||||
iscsiprovider => {
|
iscsiprovider => {
|
||||||
description => "iscsi provider",
|
description => "iscsi provider",
|
||||||
type => 'string',
|
type => 'string',
|
||||||
},
|
},
|
||||||
sudo => {
|
|
||||||
description => "use sudo",
|
|
||||||
type => 'boolean',
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -332,11 +315,8 @@ sub options {
|
|||||||
portal => { fixed => 1 },
|
portal => { fixed => 1 },
|
||||||
target => { fixed => 1 },
|
target => { fixed => 1 },
|
||||||
pool => { fixed => 1 },
|
pool => { fixed => 1 },
|
||||||
chap => { optional => 1 },
|
|
||||||
pwd => { optional => 1 },
|
|
||||||
blocksize => { fixed => 1 },
|
blocksize => { fixed => 1 },
|
||||||
iscsiprovider => { fixed => 1 },
|
iscsiprovider => { fixed => 1 },
|
||||||
sudo => { optional => 1 },
|
|
||||||
content => { optional => 1 },
|
content => { optional => 1 },
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user