Skip to content

Commit 400693a

Browse files
author
Olga Annenkova
committed
feat: managed spark wrapper, fix
1 parent 5b4351c commit 400693a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

examples/spark/main.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
import yandexcloud
99
from yandexcloud.operations import OperationError
1010

11-
USER_AGENT = "ycloud-python-sdk:spark"
12-
1311

1412
def parse_cmd():
1513
parser = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawTextHelpFormatter)
@@ -46,10 +44,10 @@ def main():
4644
arguments = parse_cmd()
4745

4846
if arguments.token:
49-
sdk = yandexcloud.SDK(token=arguments.token, user_agent=USER_AGENT)
47+
sdk = yandexcloud.SDK(token=arguments.token)
5048
else:
5149
with open(arguments.sa_json_path) as infile:
52-
sdk = yandexcloud.SDK(service_account_key=json.load(infile), user_agent=USER_AGENT)
50+
sdk = yandexcloud.SDK(service_account_key=json.load(infile))
5351

5452
spark_client = sdk.wrappers.Spark()
5553

0 commit comments

Comments
 (0)