diff --git a/salt/grains/core.py b/salt/grains/core.py index c25c26ccb2eb..04dd0fa025a4 100644 --- a/salt/grains/core.py +++ b/salt/grains/core.py @@ -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