Fix order of argument for 'vmctl create'

Diagnosed by tb@, patch from martingot@protonmail.com
thanks!
This commit is contained in:
jasper 2020-07-26 12:45:58 +00:00
parent befbcb5381
commit f44b9933a3
2 changed files with 18 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.150 2020/07/25 09:25:32 jasper Exp $
# $OpenBSD: Makefile,v 1.151 2020/07/26 12:45:58 jasper Exp $
# optional dependencies
# https://github.com/saltstack/salt/blob/develop/doc/conf.py
@ -19,7 +19,7 @@ COMMENT = remote execution and configuration management system
MODPY_EGG_VERSION = 3001
DISTNAME = salt-${MODPY_EGG_VERSION}
REVISION = 5
REVISION = 6
CATEGORIES = sysutils net devel

View File

@ -0,0 +1,16 @@
$OpenBSD: patch-salt_modules_vmctl_py,v 1.1 2020/07/26 12:45:58 jasper Exp $
Fix order of argument for vmctl(8)
Index: salt/modules/vmctl.py
--- salt/modules/vmctl.py.orig
+++ salt/modules/vmctl.py
@@ -64,7 +64,7 @@ def create_disk(name, size):
salt '*' vmctl.create_disk /path/to/disk.img size=10G
"""
ret = False
- cmd = "vmctl create {0} -s {1}".format(name, size)
+ cmd = "vmctl create -s {0} {1}".format(size, name)
result = __salt__["cmd.run_all"](cmd, output_loglevel="trace", python_shell=False)