We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b4351c commit 400693aCopy full SHA for 400693a
examples/spark/main.py
@@ -8,8 +8,6 @@
8
import yandexcloud
9
from yandexcloud.operations import OperationError
10
11
-USER_AGENT = "ycloud-python-sdk:spark"
12
-
13
14
def parse_cmd():
15
parser = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawTextHelpFormatter)
@@ -46,10 +44,10 @@ def main():
46
44
arguments = parse_cmd()
47
45
48
if arguments.token:
49
- sdk = yandexcloud.SDK(token=arguments.token, user_agent=USER_AGENT)
+ sdk = yandexcloud.SDK(token=arguments.token)
50
else:
51
with open(arguments.sa_json_path) as infile:
52
- sdk = yandexcloud.SDK(service_account_key=json.load(infile), user_agent=USER_AGENT)
+ sdk = yandexcloud.SDK(service_account_key=json.load(infile))
53
54
spark_client = sdk.wrappers.Spark()
55
0 commit comments