diff options
author | Clark Boylan <clark.boylan@gmail.com> | 2015-02-19 15:31:47 -0800 |
---|---|---|
committer | Joshua Hesketh <josh@nitrotech.org> | 2015-02-20 11:38:17 +1100 |
commit | 50bf1f5e80a72fa4422e755370441f960bb3e879 (patch) | |
tree | 29d37865143944a38d616785b6614cb70c6a4b11 | |
parent | 848b6aca93aaef49d216a73d8b7f257f39476e9a (diff) | |
download | zuul-50bf1f5e80a72fa4422e755370441f960bb3e879.tar.gz |
Only format swift string parameters
Some swift parameters are integer in type and they do not support the
string format operation. Only format parameters if they are a string and
pass integers (and other types) through as is.
Change-Id: I8d7a5bb25f7be00a5cb02b81292a548f033cad8a
-rw-r--r-- | zuul/launcher/gearman.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/zuul/launcher/gearman.py b/zuul/launcher/gearman.py index 564a554ba..915151e7b 100644 --- a/zuul/launcher/gearman.py +++ b/zuul/launcher/gearman.py @@ -231,6 +231,8 @@ class Gearman(object): s_config = {} s_config.update((k, v.format(item=item, job=job, change=item.change)) + if isinstance(v, basestring) + else (k, v) for k, v in s.items()) (swift_instructions['URL'], |