Skip to content

Commit

Permalink
Fix xcom key in sftp revoke inbound rule task
Browse files Browse the repository at this point in the history
  • Loading branch information
pankajastro committed Apr 12, 2024
1 parent 23eb03f commit 678bb5e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions astronomer/providers/sftp/example_dags/example_sftp.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,7 @@ def revoke_inbound_rules(task_instance: TaskInstance) -> None:
CidrIp=ip_range,
FromPort=22,
ToPort=22,
GroupId=task_instance.xcom_pull(
key="instance_response_master_security_group", task_ids=["create_ec2_instance"]
)[0],
GroupId=task_instance.xcom_pull(key=INSTANCE_SECURITY_GROUP, task_ids=["create_ec2_instance"])[0],
IpProtocol="tcp",
)
logging.info("%s", response)
Expand Down

0 comments on commit 678bb5e

Please sign in to comment.