diff options
author | Bartek Grzybowski <b.grzybowski@partner.samsung.com> | 2020-03-23 14:42:04 +0100 |
---|---|---|
committer | Bartek Grzybowski <b.grzybowski@partner.samsung.com> | 2020-03-23 14:42:04 +0100 |
commit | 00107ed0ee9911ac761a544bada794a1ebb26ddf (patch) | |
tree | 9a03523459344ba6d5264e34c2f6bbae356cd9d8 /vnfs/DAaaS/sample-apps | |
parent | 89da408dd79bcc7cfb4d89033da435c974c13e70 (diff) |
Fix whitespace issues in Python files
Change-Id: I7c98d1187c24b58471a822ec6f0fb9b0999f6f39
Issue-ID: INT-1482
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Diffstat (limited to 'vnfs/DAaaS/sample-apps')
3 files changed, 6 insertions, 7 deletions
diff --git a/vnfs/DAaaS/sample-apps/m3db_promql/build/sample_promql_query.py b/vnfs/DAaaS/sample-apps/m3db_promql/build/sample_promql_query.py index 2c85f1f8..844189bd 100644 --- a/vnfs/DAaaS/sample-apps/m3db_promql/build/sample_promql_query.py +++ b/vnfs/DAaaS/sample-apps/m3db_promql/build/sample_promql_query.py @@ -43,6 +43,6 @@ def main(): demo_query() demo_query_range() - + if __name__ == "__main__": main() diff --git a/vnfs/DAaaS/sample-apps/sample-minio-load-model/build/load-model-from-minio.py b/vnfs/DAaaS/sample-apps/sample-minio-load-model/build/load-model-from-minio.py index dbdabc3a..eae66d72 100755 --- a/vnfs/DAaaS/sample-apps/sample-minio-load-model/build/load-model-from-minio.py +++ b/vnfs/DAaaS/sample-apps/sample-minio-load-model/build/load-model-from-minio.py @@ -35,7 +35,7 @@ client = Minio(os.environ['S3_ENDPOINT'], secure=False) -def load_model(bucket_name, object_name, filepath): +def load_model(bucket_name, object_name, filepath): try: client.fget_object(bucket_name, object_name, filepath) except ResponseError as err: @@ -48,4 +48,4 @@ if __name__ == "__main__": for object_name in objects: print(f"Load model from s3://{bucket_name}/{object_name} to {filepath+object_name}") load_model(bucket_name, object_name, filepath+object_name) - time.sleep(300)
\ No newline at end of file + time.sleep(300) diff --git a/vnfs/DAaaS/sample-apps/sample-minio-save-model/build/save-model-to-minio.py b/vnfs/DAaaS/sample-apps/sample-minio-save-model/build/save-model-to-minio.py index b4535220..1963cd3d 100755 --- a/vnfs/DAaaS/sample-apps/sample-minio-save-model/build/save-model-to-minio.py +++ b/vnfs/DAaaS/sample-apps/sample-minio-save-model/build/save-model-to-minio.py @@ -35,7 +35,7 @@ client = Minio(os.environ['S3_ENDPOINT'], secure=False) -def load_model(bucket_name, object_name, filepath): +def load_model(bucket_name, object_name, filepath): try: client.fget_object(bucket_name, object_name, filepath) except ResponseError as err: @@ -48,14 +48,14 @@ if __name__ == "__main__": filepath = "/app/" + model if not client.bucket_exists(bucket_name): client.make_bucket(bucket_name, location=location) - + found = False try: client.stat_object(bucket_name, model); found = True except Exception as err: found = False - + metadata = { "X-Amz-Meta-model-description": "Sample numpy model", "X-Amz-Meta-model-type": "scikit-learn/numpy", @@ -66,4 +66,3 @@ if __name__ == "__main__": client.fput_object(bucket_name, model, filepath, metadata=metadata) except expression as identifier: print(err) - |