Code Review
/
yardstick.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "heat: convert open to context manager"
[yardstick.git]
/
yardstick
/
benchmark
/
core
/
plugin.py
diff --git
a/yardstick/benchmark/core/plugin.py
b/yardstick/benchmark/core/plugin.py
index
da12ce4
..
3080f5d
100644
(file)
--- a/
yardstick/benchmark/core/plugin.py
+++ b/
yardstick/benchmark/core/plugin.py
@@
-10,6
+10,7
@@
""" Handler for yardstick command 'plugin' """
from __future__ import print_function
""" Handler for yardstick command 'plugin' """
from __future__ import print_function
+from __future__ import absolute_import
import os
import sys
import yaml
import os
import sys
import yaml
@@
-182,7
+183,7
@@
class PluginParser(object):
and a deployment instance
"""
and a deployment instance
"""
- print
("Parsing plugin config:", self.path)
+ print("Parsing plugin config:", self.path)
try:
kw = {}
try:
kw = {}
@@
-191,10
+192,10
@@
class PluginParser(object):
input_plugin = f.read()
rendered_plugin = TaskTemplate.render(input_plugin, **kw)
except Exception as e:
input_plugin = f.read()
rendered_plugin = TaskTemplate.render(input_plugin, **kw)
except Exception as e:
- print(
("Failed to render template:\n%(plugin)s\n%(err)s\n")
+ print(
"Failed to render template:\n%(plugin)s\n%(err)s\n"
% {"plugin": input_plugin, "err": e})
raise e
% {"plugin": input_plugin, "err": e})
raise e
- print(
("Input plugin is:\n%s\n")
% rendered_plugin)
+ print(
"Input plugin is:\n%s\n"
% rendered_plugin)
cfg = yaml.load(rendered_plugin)
except IOError as ioerror:
cfg = yaml.load(rendered_plugin)
except IOError as ioerror: