Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoca committed Nov 13, 2017
1 parent ba4a49a commit eb5a508
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ansible/plugins/inventory/nmap.py
Expand Up @@ -116,7 +116,7 @@ def parse(self, inventory, loader, path, cache=False):
p = Popen(cmd, stdout=PIPE, stderr=PIPE)
stdout, stderr = p.communicate()
if p.returncode != 0:
raise AnsibleParserError('Failed to run nmap, rc=$s: %s' % (p.returncode, to_native(stderr)))
raise AnsibleParserError('Failed to run nmap, rc=%s: %s' % (p.returncode, to_native(stderr)))

# parse results
host = None
Expand Down

0 comments on commit eb5a508

Please sign in to comment.