Skip to content

Commit

Permalink
Closes #4
Browse files Browse the repository at this point in the history
Really not happy with this patch. Upcoming version will be pythonic.
  • Loading branch information
lazymutt committed Oct 24, 2017
1 parent 7ef9a57 commit 327113b
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions firmware_password_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,15 +197,17 @@ def main():

#
# set up slack channel(s)
if args.slack:
slack_info_url = 'your slack URL'
slack_info_channel = '#your FWPM info channel'
info_bot = IWS(slack_info_url, bot_name="FWPM informational message", channel=slack_info_channel)
slack_info_url = 'your FWPM slack info URL'
slack_info_channel = '#your FWPM slack info channel'
info_bot = IWS(slack_info_url, bot_name="FWPM informational message", channel=slack_info_channel)

slack_error_url = 'your FWPM slack error URL'
slack_error_channel = '#your FWPM slack error channel'
error_bot = IWS(slack_error_url, bot_name="FWPM error message", channel=slack_error_channel)

slack_error_url = 'your slack URL'
slack_error_channel = '#your FWPM error channel'
error_bot = IWS(slack_error_url, bot_name="FWPM error message", channel=slack_error_channel)
local_identifier = None

if args.slack:
full_ioreg = subprocess.check_output(['ioreg', '-l'])
serial_number_raw = re.findall(r'\"IOPlatformSerialNumber\" = \"(.*)\"', full_ioreg)
serial_number = serial_number_raw[0]
Expand Down

0 comments on commit 327113b

Please sign in to comment.