salt icon indicating copy to clipboard operation
salt copied to clipboard

svn.export and svn.latest option handling broken on 2014.7.1

Open RobertFach opened this issue 11 years ago • 14 comments

Hi, I have a problem with the 2014.7.1 version and svn.latest/svn.export states using options like username, etc.

state:

failed-svn: svn.export: - name: url - username: XXX - password: YYY

 Comment: An exception occurred in this state: Traceback (most recent call last):
            File "/usr/lib/python2.7/dist-packages/salt/state.py", line 1529, in call
              **cdata['kwargs'])
            File "/usr/lib/python2.7/dist-packages/salt/states/svn.py", line 233, in export
              out = __salt__[svn_cmd](cwd, name, basename, user, username, password, rev, *opts)
            File "/usr/lib/python2.7/dist-packages/salt/modules/svn.py", line 482, in export
              return _run_svn('export', cwd, user, username, password, opts)
            File "/usr/lib/python2.7/dist-packages/salt/modules/svn.py", line 62, in _run_svn
              opts.extend(['--username', username])
          AttributeError: 'tuple' object has no attribute 'extend'

It looks as somebody has changed the option parameter handling in the modules file. Now a list is expected, however a tuple is passed in. Does anybody know if there was a recent change?

Should I provide a fix for that?

RobertFach avatar Jan 29 '15 18:01 RobertFach

@RobertFach, thanks for reporting this. It should be fixed in #20225.

jfindlay avatar Jan 30 '15 18:01 jfindlay

That fix will arrive in 2014.7.2, which should be out in about 2 weeks.

jfindlay avatar Jan 30 '15 18:01 jfindlay

Okay, thx, good to know

RobertFach avatar Jan 30 '15 18:01 RobertFach

@jfindlay Is there an updated ETA on when a version with this fix will go live?

sollie avatar Feb 19 '15 09:02 sollie

@sollie, 2014.7.2 is ready to go; we were supposed to announce yesterday. I'll see what I can figure out.

jfindlay avatar Feb 19 '15 16:02 jfindlay

2014.7.2 was announced a couple of hours ago.

jfindlay avatar Feb 19 '15 18:02 jfindlay

@jfindlay Thanks for the update.

sollie avatar Feb 23 '15 14:02 sollie

Has anyone tested this fix on 2014.7.2 yet? Can this issue be closed?

rallytime avatar Feb 24 '15 05:02 rallytime

@rallytime I cannot yet test the fixes, because I'm still waiting for the packages of the 2014.7.2 release...

On 2014.7.1 ds-3 its not yet fixed.

RobertFach avatar Feb 24 '15 08:02 RobertFach

@RobertFach No problem. Which distro are you looking for packages? I think we're still waiting on Debian and Ubuntu, but the others (I am fairly certain) are available.

rallytime avatar Mar 10 '15 04:03 rallytime

@rallytime: Right now, I'm waiting for Ubuntu packages... Who is doing the packaging ?

RobertFach avatar Mar 10 '15 14:03 RobertFach

We have a community packager that we are waiting for packages on. @joehealy Any word on when those might be coming?

rallytime avatar Mar 10 '15 15:03 rallytime

@RobertFach Ubuntu packages have been out for a little while now. Can you give this another try and let us know how it goes? Thanks!

rallytime avatar Apr 03 '15 19:04 rallytime

2014.7.5 packages are now up for Ubuntu. Since we didn't hear back on this for a while, I am going to close this as I am fairly certain this is fixed.

If this issue remains a problem for anyone after upgrading to the latest release, please let us know and we will be happy to re-open this issue.

rallytime avatar Apr 23 '15 23:04 rallytime