0.3.3: allow argv jobs (create), fix zero timeout, longer stop wait, template name without .conf
This commit is contained in:
1 parent
5bdd3c82c6
commit
e989df97a5
5 files changed
+24
-7
No files matched your search
@@ -48,7 +48,9 @@ if ($post) {
|
||||
vmm_human_bytes($budget['limit'])
|
||||
);
|
||||
} else {
|
||||
$argv = ['create', '-t', $tpl, '-d', $ds, '-s', strtoupper($size), '-m', strtoupper($mem), '-c', $cpu];
|
||||
// vm-bhyve expects the template name without the .conf suffix
|
||||
$tplName = preg_replace('/\.conf$/', '', $tpl);
|
||||
$argv = ['create', '-t', $tplName, '-d', $ds, '-s', strtoupper($size), '-m', strtoupper($mem), '-c', $cpu];
|
||||
if ($cloud) {
|
||||
$argv[] = '-C';
|
||||
$argv[] = '-i';
|
||||
|
||||
Reference in new issue
Block a user