Skip to content

Commit

Permalink
python2/3 compatible version of string2hex (MatthiasLohr#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthiasLohr committed Jul 10, 2018
1 parent 5332123 commit 730071b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion f5fpc-client.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env python

import argparse
import binascii
import docker
import getpass
import logging
Expand Down Expand Up @@ -60,7 +61,7 @@ def main():
environment={
'HOST': args.host,
'USER': args.user,
'HEXPASSWORD': password.encode('hex')
'HEXPASSWORD': binascii.hexlify(password.encode('utf8'))
}
)
logging.debug('Docker container initialized')
Expand Down

0 comments on commit 730071b

Please sign in to comment.