2 Commits

Author SHA1 Message Date
Lucas Alvares Gomes
c57e98d2cf Fix tox -epep8 for Python3
This patch is fixing the hook-docker-cmd.py module to support running
when Python3 is the default interpreter. Before this patch, the code was
relying on the "unicode" built-in type which is not present in Python3.
The six.text_type is being used instead.

Change-Id: If44b1ea7497544abbbf16fa75c61e62bcd982328
Closes-Bug: #1643578
2016-11-21 14:40:21 +00:00
Ian Main
aa4aaf72cd Create new docker command hook
This implements a new hook to run commands with docker directly.
It uses the same interface so that minimal changes will be needed
to the heat templates.

The hook scripts are copied from the heat-templates change
I699107c3df64723a945c5d5ac82ae3a48b76700e. This will be replaced with
a simple package installation when the heat-templates change has been
packaged.

Co-Authored: Flavio Percoco <fpercoco@redhat.com>
Co-Authored: Martin André <m.andre@redhat.com>
Co-Authored: Steve Baker <sbaker@redhat.com>
Change-Id: I1e4d6e5afe41827858d6340f6c4ad9e48158e7e5
2016-11-10 00:31:11 +00:00