Commit 945364f2 authored by Yathindra Naik's avatar Yathindra Naik
Browse files

Handle unnamed args in disk-agent

parent 62f71456
......@@ -712,6 +712,9 @@ Node instproc disk-agent {args} {
-name {} -type {} -mountpoint {} -params {}
}
if {$(-name) == {} && $(-type) == {} && $(-mountpoint) == {} && $(-params) == {}} {
return $curdisk
}
set curdisk [new Disk [$self set sim]]
$curdisk set node $self
$curdisk set name $(-name)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment