Skip to content

Commit

Permalink
Update sslo_o365_update.py
Browse files Browse the repository at this point in the history
  • Loading branch information
kevingstewart authored Feb 9, 2021
1 parent c275ea0 commit 2a16c25
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions sslo_o365_update.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/python
# -*- coding: utf-8 -*-
# O365 URL/IP update automation for BIG-IP
version = "7.1.3"
version = "7.1.4"
# Last Modified: January 2021
# Update author: Kevin Stewart, Sr. SSA F5 Networks
# Contributors: Regan Anderson, Brett Smith, F5 Networks
Expand All @@ -10,6 +10,7 @@
# >>> NOTE: THIS VERSION OF THE OFFICE 365 SCRIPT IS SUPPORTED BY SSL ORCHESTRATOR 6.0 OR HIGHER <<<
#
# Updated for SSL Orchestrator by Kevin Stewart, SSA, F5 Networks
# Update 20210209 - Minor string comparison syntax update
# Update 20210119 - added support for explicit proxy gateway (if required for Internet access)
# Update 20201104 - resolved URL category format issue
# Update 20201008 - to support additional enhancements by Kevin Stewart
Expand Down Expand Up @@ -353,7 +354,7 @@ def main():
request_string = uri_ms_o365_version + guid
req_string = "https://" + url_ms_o365_version + request_string

if proxy is not "none":
if proxy != "none":
proxyctl = urllib2.ProxyHandler({'https': proxy})
opener = urllib2.build_opener(proxyctl)
urllib2.install_opener(opener)
Expand Down Expand Up @@ -401,7 +402,7 @@ def main():
request_string = "/endpoints/" + customer_endpoint + "?ClientRequestId=" + guid
req_string = "https://" + url_ms_o365_endpoints + request_string

if proxy is not "none":
if proxy != "none":
proxyctl = urllib2.ProxyHandler({'https': proxy})
opener = urllib2.build_opener(proxyctl)
urllib2.install_opener(opener)
Expand Down

0 comments on commit 2a16c25

Please sign in to comment.