Skip to content

Commit 3233eb7

Browse files
author
Matei Stanescu
committed
Get teleport only in ec2 plugin
1 parent eb56c9e commit 3233eb7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/ops/inventory/plugin/cns.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ def cns(args):
2626
jsn = ec2(dict(
2727
region=region,
2828
boto_profile=profile,
29-
teleport_enabled=args.get('teleport_enabled', False),
3029
cache=args.get('cache', 3600 * 24),
3130
filters=[
3231
{'Name': 'tag:cluster', 'Values': [cns_cluster]}

src/ops/inventory/plugin/ec2.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
def ec2(args):
1515
filters = args.get('filters', [])
1616
bastion_filters = args.get('bastion', [])
17+
teleport_enabled = args.get('teleport_enabled', False)
1718

1819
if args.get('cluster') and not args.get('filters'):
1920
filters = [{'Name': 'tag:cluster', 'Values': [args.get('cluster')]}]
@@ -28,5 +29,5 @@ def ec2(args):
2829
regions=args['region'],
2930
filters=filters,
3031
bastion_filters=bastion_filters,
31-
teleport_enabled=args.get('teleport_enabled', False)
32+
teleport_enabled=teleport_enabled
3233
).get_as_json()

0 commit comments

Comments
 (0)