Skip to content

Commit b99d3cc

Browse files
committed
improve warning for old --cache flag
1 parent b201f3c commit b99d3cc

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

stackinator/mirror.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,12 @@ def __init__(
177177
self._logger.warning(
178178
"Configuring the buildcache from the system cache.yaml file.\n"
179179
"Please switch to using either the '--cache' option or the 'mirrors.yaml' file instead.\n"
180-
f"The equivalent 'mirrors.yaml' would look like: \n"
181-
f"{yaml.dump([self.buildcache], default_flow_style=False)}"
180+
"The equivalent 'mirrors.yaml' would look like: \n\n"
181+
"buildcache:\n"
182+
" mount_specific: true\n"
183+
f" private_key: {self.buildcache['private_key']}\n"
184+
f" url: {self.buildcache['url']}\n\n"
185+
"see https://eth-cscs.github.io/stackinator/mirrors for more information"
182186
)
183187

184188
# The bootstrap mirror, the read-only source mirrors, the writable source

0 commit comments

Comments
 (0)