Skip to content

Commit

Permalink
Merge pull request #10 from kapicorp/improve_target_naming_variables
Browse files Browse the repository at this point in the history
Improved target names variables
  • Loading branch information
uberspot authored Feb 22, 2023
2 parents 5246e6a + d220e89 commit 856b34c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions reclass/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import re
import fnmatch
import shlex
import string
import os
import sys
import yaml

Expand Down Expand Up @@ -169,7 +169,9 @@ def _get_automatic_parameters(self, nodename, environment):
'_reclass_': {
'name': {
'full': nodename,
'short': nodename.split('.')[0]
'short': nodename.split('.').pop(),
'path': os.path.join(*nodename.split('.')),
'parts': nodename.split('.')
},
'environment': environment
}
Expand Down

0 comments on commit 856b34c

Please sign in to comment.