diff options
author | Rick Elrod <rick@elrod.me> | 2021-04-27 10:15:24 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-27 17:15:24 +0200 |
commit | fcbf5c31851cced6a82a27d7d0b489551e325385 (patch) | |
tree | 6a77965c49c2df6c8ae15dc4bd1cf7a57eb7b6fb /lib/ansible/module_utils | |
parent | 9d9b08bece5d9c422e8e4cfa1ec2f6f5bdfa6b06 (diff) | |
download | ansible-fcbf5c31851cced6a82a27d7d0b489551e325385.tar.gz |
[module_utils] make to_bits actually return (#74409)
Change:
- Instead of returning the `str` type, return the value that was
calculated.
Test Plan:
- New unit tests.
Signed-off-by: Rick Elrod <rick@elrod.me>
Diffstat (limited to 'lib/ansible/module_utils')
-rw-r--r-- | lib/ansible/module_utils/common/network.py | 2 |
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): |