diff options
| author | Carl Hetherington <cth@carlh.net> | 2017-08-06 00:25:44 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2017-08-06 00:25:44 +0100 |
| commit | 6939ab27343c0f246cc349cd6861b1942c00e364 (patch) | |
| tree | 1225b1db4321836f7d80c5c1f5d8eb5980feab7b | |
| parent | a6e447e71afd73b6f6c4822a9ee0b961a219cc2a (diff) | |
Try to fix command() failure.
| -rwxr-xr-x | cdist | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -524,6 +524,8 @@ class DockerTarget(LinuxTarget): command('%s kill %s' % (config.docker(), container)) def command(self, cmd): + target = '%s-%s-%s' % (self.distro, self.version, self.bits) + container = command_and_read('%s run -itd %s /bin/bash' % (config.docker(), target)).read().strip() command('%s exec -t %s /bin/bash -c "%s"' % (config.docker(), container, cmd)) class DirectTarget(LinuxTarget): |
