summaryrefslogtreecommitdiff
path: root/lib/ansible
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ansible')
-rw-r--r--lib/ansible/module_utils/common/network.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/module_utils/common/network.py b/lib/ansible/module_utils/common/network.py
index 9e1c1ab78b..c3874f89e1 100644
--- a/lib/ansible/module_utils/common/network.py
+++ b/lib/ansible/module_utils/common/network.py
@@ -146,7 +146,7 @@ def to_bits(val):
bits = ''
for octet in val.split('.'):
bits += bin(int(octet))[2:].zfill(8)
- return str
+ return bits
def is_mac(mac_address):