Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDK-344 Enable use of port argument for DbTaps #267

Merged
merged 1 commit into from
Mar 19, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions qds_sdk/dbtaps.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ def parsers():
help="Username")
edit.add_argument("--password", dest="password",
help="Password")
edit.add_argument("--port", dest="port",
help="Database Port")
edit.add_argument("--port", dest="port", help="Database Port")
edit.add_argument("--type", dest="type", choices=["mysql","vertica","mongo","postgresql","redshift","sqlserver"],
help="Type of database")
edit.add_argument("--location", dest="location", choices=["us-east-1", "us-west-2", "ap-southeast-1", "eu-west-1", "on-premise"],
Expand Down Expand Up @@ -107,7 +106,8 @@ def create(args):
db_user=args.user,
db_passwd=args.password,
db_type=args.type,
db_location=args.location)
db_location=args.location,
port=args.port)

return json.dumps(dbtap.attributes, sort_keys=True, indent=4)

Expand Down Expand Up @@ -148,6 +148,8 @@ def edit(args):
options["db_type"] = args.type
if args.location is not None:
options["db_location"] = args.location
if args.port is not None:
options["port"] = args.port
tap = tap.edit(**options)
return json.dumps(tap.attributes, sort_keys=True, indent=4)

Expand Down