summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLev Morgan <morgan.lev@gmail.com>2018-11-02 19:16:44 +0000
committerLev Morgan <morgan.lev@gmail.com>2018-11-02 15:55:01 -0500
commita912c8beb9e0c074f89876aa9844b7fb1c6d1ad5 (patch)
tree2c8830382a127b40680c52041835a624cfd3f094
parentc7270554dacd534011fbbf5f8859ac3971e24f3e (diff)
Adding missing format character
It looks like there's a missing % in pegleg/engine/util/definition.py, where pluck creates its ClickException. This adds it in. Change-Id: I26c12423af11f7d02944a077f762bcdd1e03be41
Notes
Notes (review): Code-Review+2: Felipe Monteiro <felipe.monteiro@att.com> Code-Review+1: Tin Lam <tin@irrational.io> Code-Review+1: Drew Walters <drewwalters96@gmail.com> Code-Review+2: Aaron Sheffield <ajs@sheffieldfamily.net> Workflow+1: Aaron Sheffield <ajs@sheffieldfamily.net> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Tue, 13 Nov 2018 16:50:50 +0000 Reviewed-on: https://review.openstack.org/615299 Project: openstack/airship-pegleg Branch: refs/heads/master
-rw-r--r--pegleg/engine/util/definition.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pegleg/engine/util/definition.py b/pegleg/engine/util/definition.py
index 117d2a3..e4d216e 100644
--- a/pegleg/engine/util/definition.py
+++ b/pegleg/engine/util/definition.py
@@ -64,8 +64,8 @@ def pluck(site_definition, key):
64 except Exception as e: 64 except Exception as e:
65 site_name = site_definition.get('metadata', {}).get('name') 65 site_name = site_definition.get('metadata', {}).get('name')
66 raise click.ClickException( 66 raise click.ClickException(
67 'failed to get "%s" from site definition "%s": %s' (key, 67 'failed to get "%s" from site definition '
68 site_name, e)) 68 '"%s": %s' % (key, site_name, e))
69 69
70 70
71def site_files(site_name): 71def site_files(site_name):