Skip to content

Commit

Permalink
Merge pull request #51758 from dwoz/working_dir_grain
Browse files Browse the repository at this point in the history
Add cwd grain for working directory
  • Loading branch information
dwoz authored Mar 7, 2019
2 parents f2caf0f + fc8b71c commit f89354f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions salt/grains/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -2357,6 +2357,13 @@ def get_machine_id():
return {'machine_id': machineid.read().strip()}


def cwd():
'''
Current working directory
'''
return {'cwd': os.getcwd()}


def path():
'''
Return the path
Expand Down

0 comments on commit f89354f

Please sign in to comment.