Skip to content

Commit 9da5135

Browse files
committed
Modify the switch for default host from 'default' to '-'
Eliminate corner case of a host legitimately named 'default'
1 parent 7871b39 commit 9da5135

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

snowsaw/plugins/link.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ def _process_links(self, links):
5151
if hosts:
5252
if hostname in hosts:
5353
path = os.path.expandvars(os.path.expanduser(hosts.get(hostname)))
54-
elif "default" in hosts:
55-
path = os.path.expandvars(os.path.expanduser(hosts.get("default")))
54+
elif "-" in hosts:
55+
path = os.path.expandvars(os.path.expanduser(hosts.get("-")))
5656
self._log.lowinfo("Applying default link {} -> {}".format(destination, os.path.join(self._context.snowblock_dir(),path)))
5757
else:
5858
for host in hosts.items():

0 commit comments

Comments
 (0)