Replaced f-string with .format for Python2 compatibility

This commit is contained in:
Evert Hessel 2022-01-30 12:40:10 +01:00
parent 6635b83911
commit d4c3aef803

View file

@ -1055,7 +1055,7 @@ def main():
if forward is not None: if forward is not None:
if StrictVersion(FIREWALLD_VERSION) < StrictVersion('0.9.0'): if StrictVersion(FIREWALLD_VERSION) < StrictVersion('0.9.0'):
module.fail_json(msg=f'Intra zone forwarding requires firewalld>=0.9.0. Current version is {FIREWALLD_VERSION}.') module.fail_json(msg='Intra zone forwarding requires firewalld>=0.9.0. Current version is {0}.'.format(FIREWALLD_VERSION))
transaction = ForwardTransaction( transaction = ForwardTransaction(
module, module,