Skip to content

Commit

Permalink
Merge pull request #16 from leki75/master
Browse files Browse the repository at this point in the history
Package multiple layout using matrix parameters
  • Loading branch information
Konstantin Nazarov committed Nov 11, 2014
2 parents f8373c4 + 98e563b commit 73902fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion artifactory.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def encode_matrix_parameters(parameters):

for param in iter(sorted(parameters)):
if isinstance(parameters[param], (list, tuple)):
value = ','.join(parameters[param])
value = (';%s=' % (param)).join(parameters[param])
else:
value = parameters[param]

Expand Down
2 changes: 1 addition & 1 deletion test.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def test_matrix_encode(self):

s = artifactory.encode_matrix_parameters(params)

self.assertEqual(s, "baz=bar,quux;foo=asdf")
self.assertEqual(s, "baz=bar;baz=quux;foo=asdf")


class ArtifactoryFlavorTest(unittest.TestCase):
Expand Down

0 comments on commit 73902fa

Please sign in to comment.