Skip to content

Commit

Permalink
Fixed issues reported by pylint as part of cloudflare#27.
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Ulm <[email protected]>
  • Loading branch information
root360-AndreasUlm committed Nov 25, 2019
1 parent 0c3f672 commit d2fd016
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions gcp_push.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
from google.cloud import storage
import sys
import os
from google.cloud import storage


def main():
filename = sys.argv[1]

client = storage.Client()
bucket = client.bucket(os.getenv('bucket'))
blob = bucket.blob(filename)
blob.upload_from_filename(filename)

filename = sys.argv[1]

client = storage.Client()
bucket = client.bucket(os.getenv('bucket'))
blob = bucket.blob(filename)
blob.upload_from_filename(filename)
if __name__ == "__main__":
main()

0 comments on commit d2fd016

Please sign in to comment.