diff --git a/lib/ansible/modules/system/beadm.py b/lib/ansible/modules/system/beadm.py index c6327fdc0b..0027c562e9 100644 --- a/lib/ansible/modules/system/beadm.py +++ b/lib/ansible/modules/system/beadm.py @@ -171,7 +171,7 @@ class BE(object): if '@' in self.name: for line in out.splitlines(): if self.is_freebsd: - check = re.match(r'.+/({})\s+\-'.format(self.name), line) + check = re.match(r'.+/({0})\s+\-'.format(self.name), line) if check: return check else: