Skip to content

Commit

Permalink
Modify the switch for default host from 'default' to '-'
Browse files Browse the repository at this point in the history
Eliminate corner case of a host legitimately named 'default'
  • Loading branch information
kbuley committed Nov 1, 2017
1 parent 7871b39 commit 9da5135
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions snowsaw/plugins/link.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ def _process_links(self, links):
if hosts:
if hostname in hosts:
path = os.path.expandvars(os.path.expanduser(hosts.get(hostname)))
elif "default" in hosts:
path = os.path.expandvars(os.path.expanduser(hosts.get("default")))
elif "-" in hosts:
path = os.path.expandvars(os.path.expanduser(hosts.get("-")))
self._log.lowinfo("Applying default link {} -> {}".format(destination, os.path.join(self._context.snowblock_dir(),path)))
else:
for host in hosts.items():
Expand Down

0 comments on commit 9da5135

Please sign in to comment.