Skip to content

Commit

Permalink
Correct cloudinit template argument name
Browse files Browse the repository at this point in the history
  • Loading branch information
JimMadge committed Aug 13, 2024
1 parent b0febc7 commit 9b48edb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ write_files:
mounts:
# Desired state configuration is in a blob container mounted as NFSv3
- ["{{storage_account_data_desired_state_name}}.blob.core.windows.net:/{{storage_account_data_desired_state_name}}/desiredstate", /desired_state, nfs, "ro,_netdev,sec=sys,vers=3,nolock,proto=tcp"]
- ["{{storage_account_desired_state_name}}.blob.core.windows.net:/{{storage_account_desired_state_name}}/desiredstate", /desired_state, nfs, "ro,_netdev,sec=sys,vers=3,nolock,proto=tcp"]
# Secure data is in a blob container mounted as NFSv3
- ["{{storage_account_data_private_sensitive_name}}.blob.core.windows.net:/{{storage_account_data_private_sensitive_name}}/ingress", /data, nfs, "ro,_netdev,sec=sys,vers=3,nolock,proto=tcp"]
- ["{{storage_account_data_private_sensitive_name}}.blob.core.windows.net:/{{storage_account_data_private_sensitive_name}}/egress", /output, nfs, "rw,_netdev,sec=sys,vers=3,nolock,proto=tcp"]
Expand Down
4 changes: 2 additions & 2 deletions tests/infrastructure/programs/sre/test_workspaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
class TestTemplateCloudInit:
def test_template_cloudinit(self):
cloudinit = SREWorkspacesComponent.template_cloudinit(
storage_account_data_desired_state_name="storageaccount",
storage_account_desired_state_name="sadesiredstate",
)

assert (
'- ["storageaccount.blob.core.windows.net:/storageaccount/desiredstate", /desired_state, nfs, "ro,'
'- ["sadesiredstate.blob.core.windows.net:/sadesiredstate/desiredstate", /desired_state, nfs, "ro,'
in cloudinit
)

0 comments on commit 9b48edb

Please sign in to comment.