Skip to content

Commit

Permalink
[DFSM] Remove unused variable 'DisableSudoAccessForDefault' from user…
Browse files Browse the repository at this point in the history
… data variables in compute nodes.

Signed-off-by: Giacomo Marciani <[email protected]>
  • Loading branch information
gmarciani committed Jan 15, 2024
1 parent 49322fd commit a0bada2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cli/src/pcluster/templates/queues_stack.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,6 @@ def _add_compute_resource_launch_template(
default=False,
)
),
"DisableSudoAccessForDefault": "true"
if self._config.disable_sudo_access_default_user
else "false",
"LaunchTemplateResourceId": launch_template_id,
"CloudFormationUrl": get_service_endpoint("cloudformation", self._config.region),
"CfnInitRole": instance_role_name,
Expand Down Expand Up @@ -369,6 +366,9 @@ def _add_compute_resource_launch_template(
"directory_service": {
"enabled": str(self._config.directory_service is not None).lower()
},
"disable_sudo_access_for_default_user": "true"
if self._config.disable_sudo_access_default_user
else "false",
}
},
indent=4,
Expand Down

0 comments on commit a0bada2

Please sign in to comment.