Skip to content

Commit

Permalink
patch gcs path parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob Ferriero authored Apr 26, 2019
1 parent 82f2426 commit fecf71a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def __init__(self, bq_schema_filename=None, input_bq_table=None,
try:
# Handles json from google cloud storage or local.
if bq_schema_filename.find('gs://') == 0:
bkt, path = bq_schema_filename.strip('gs://').split('/', 1)
bkt, path = bq_schema_filename.replace('gs://', '').split('/', 1)
client = gcs.Client()
bucket = client.get_bucket(bkt)

Expand Down

0 comments on commit fecf71a

Please sign in to comment.