diff options
author | Matt Clay <matt@mystile.com> | 2018-01-10 12:03:25 -0800 |
---|---|---|
committer | Matt Clay <matt@mystile.com> | 2018-01-10 14:08:11 -0800 |
commit | 797664d9cb681a66b3c2e17405d23b9c8723321c (patch) | |
tree | 16533e8024c9c9dde42da9d7f6b61444a3e71f24 /lib/ansible/plugins/connection/iocage.py | |
parent | 95ff8f1a90f9008dd8ae91df4655b4cc39cb210e (diff) | |
download | ansible-797664d9cb681a66b3c2e17405d23b9c8723321c.tar.gz |
Python 2.6 `str.format()` compatibility fixes.
Diffstat (limited to 'lib/ansible/plugins/connection/iocage.py')
-rw-r--r-- | lib/ansible/plugins/connection/iocage.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ansible/plugins/connection/iocage.py b/lib/ansible/plugins/connection/iocage.py index 6c0e7e050e..b1f01c4435 100644 --- a/lib/ansible/plugins/connection/iocage.py +++ b/lib/ansible/plugins/connection/iocage.py @@ -55,7 +55,7 @@ class Connection(Jail): jail_uuid = self.get_jail_uuid() - kwargs[Jail.modified_jailname_key] = 'ioc-{}'.format(jail_uuid) + kwargs[Jail.modified_jailname_key] = 'ioc-{0}'.format(jail_uuid) display.vvv(u"Jail {iocjail} has been translated to {rawjail}".format( iocjail=self.ioc_jail, rawjail=kwargs[Jail.modified_jailname_key]), @@ -74,6 +74,6 @@ class Connection(Jail): p.wait() if p.returncode != 0: - raise AnsibleError(u"iocage returned an error: {}".format(stdout)) + raise AnsibleError(u"iocage returned an error: {0}".format(stdout)) return stdout.strip('\n') |