Skip to content

Commit

Permalink
More descriptive message
Browse files Browse the repository at this point in the history
  • Loading branch information
tbarbette committed Jan 14, 2025
1 parent 28dac01 commit 45ab462
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions modules/nginx.npf
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ ssl:NGINX_SRVTYPE=ssl
ssl:NGINX_SERVER_CONFIG=ssl on;ssl_certificate nginx-selfsigned.crt;ssl_certificate_key nginx-selfsigned.key;

%init
mkdir -p nginx
mkdir -p $NGINX_ROOT
mkdir -p nginx || sudo mkdir -p nginx
mkdir -p $NGINX_ROOT || sudo mkdir -p $NGINX_ROOT
echo "RESULT 1"

%-ssl:file genssl.sh
Expand Down
2 changes: 1 addition & 1 deletion npf/tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ def create_files(self, file_list, path_to_root):
print(p.strip())
for node in npf.cluster.factory.nodes_for_role(role):
if not node.executor.writeFile(filename, path_to_root, p):
print("Re-trying with sudo...")
print(f"Re-trying to write file {filename} with sudo...")
if not node.executor.writeFile(filename, path_to_root, p, sudo=True):
raise Exception("Could not create file %s on %s" % (filename, node.name))

Expand Down

0 comments on commit 45ab462

Please sign in to comment.