Skip to content

Commit

Permalink
PGScout URL will now also be normalized on --only-server instances
Browse files Browse the repository at this point in the history
  • Loading branch information
sLoPPydrive committed Jan 7, 2018
1 parent fd182d7 commit 23e3277
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions pogom/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -764,15 +764,6 @@ def get_args():

args.accounts_L30.append(hlvl_account)

# Normalize PGScout URL
if args.pgscout_url:
# Remove trailing slashes
if args.pgscout_url.endswith('/'):
args.pgscout_url = args.pgscout_url[:len(args.pgscout_url) - 1]
# Add /iv if needed
if not args.pgscout_url.endswith('/iv'):
args.pgscout_url = '{}/iv'.format(args.pgscout_url)

# Prepare the IV/CP scanning filters.
args.enc_whitelist = []

Expand Down Expand Up @@ -819,6 +810,15 @@ def get_args():
else:
args.wh_types = frozenset([i for i in args.wh_types])

# Normalize PGScout URL
if args.pgscout_url:
# Remove trailing slashes
if args.pgscout_url.endswith('/'):
args.pgscout_url = args.pgscout_url[:len(args.pgscout_url) - 1]
# Add /iv if needed
if not args.pgscout_url.endswith('/iv'):
args.pgscout_url = '{}/iv'.format(args.pgscout_url)

args.locales_dir = 'static/dist/locales'
args.data_dir = 'static/dist/data'

Expand Down

0 comments on commit 23e3277

Please sign in to comment.