Skip to content

Commit 6fe950c

Browse files
committed
Use record_type instead of only type since this is a built
1 parent cc549d1 commit 6fe950c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

SoftLayer/CLI/dns/record_add.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
@click.command()
1414
@click.argument('record')
15-
@click.argument('type')
15+
@click.argument('record_type')
1616
@click.argument('data')
1717
@click.option('--zone',
1818
help="Zone name or identifier that the resource record will be associated with.\n"
@@ -40,7 +40,7 @@
4040
show_default=True,
4141
help='Relative weight for records with same priority. (SRV type only)')
4242
@environment.pass_env
43-
def cli(env, record, type, data, zone, ttl, priority, protocol, port, service, weight):
43+
def cli(env, record, record_type, data, zone, ttl, priority, protocol, port, service, weight):
4444
"""Add resource record.
4545
4646
Each resource record contains a RECORD and DATA property, defining a resource's name and it's target data.
@@ -69,7 +69,7 @@ def cli(env, record, type, data, zone, ttl, priority, protocol, port, service, w
6969
"""
7070

7171
manager = SoftLayer.DNSManager(env.client)
72-
record_type = type.upper()
72+
record_type = record_type.upper()
7373

7474
if zone and record_type != 'PTR':
7575
zone_id = helpers.resolve_id(manager.resolve_ids, zone, name='zone')

0 commit comments

Comments
 (0)