diff --git a/salt/grains/core.py b/salt/grains/core.py index 04c1ae91b5f5..34547b46b4c7 100644 --- a/salt/grains/core.py +++ b/salt/grains/core.py @@ -2403,6 +2403,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