From cf2119db170376626957156de36403cf93e3e766 Mon Sep 17 00:00:00 2001 From: "robert.fach" Date: Mon, 5 Jan 2015 16:50:24 +0100 Subject: [PATCH] changed salt call to modules/svn.py svn.export function, added revision field to function call argument list --- salt/states/svn.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/salt/states/svn.py b/salt/states/svn.py index e60bd99ffc..a7e6649cad 100644 --- a/salt/states/svn.py +++ b/salt/states/svn.py @@ -212,14 +212,14 @@ def export(name, ret, ('{0} doesn\'t exist and is set to be checked out.').format(target)) svn_cmd = 'svn.list' - opts += ('-r', 'HEAD') + rev = 'HEAD' out = __salt__[svn_cmd](cwd, target, user, username, password, *opts) return _neutral_test( ret, ('{0}').format(out)) if rev: - opts += ('-r', str(rev)) + rev = 'HEAD' if force: opts += ('--force',) @@ -230,7 +230,7 @@ def export(name, if trust: opts += ('--trust-server-cert',) - out = __salt__[svn_cmd](cwd, name, basename, user, username, password, *opts) + out = __salt__[svn_cmd](cwd, name, basename, user, username, password, rev, *opts) ret['changes'] = name + ' was Exported to ' + target return ret