From ab9aa60dc208ec71029f0c40aec151ef2331f530 Mon Sep 17 00:00:00 2001 From: "Gareth J. Greenaway" Date: Wed, 18 Sep 2019 17:04:03 -0700 Subject: [PATCH] Porting PR #51758 to 2019.2.1 --- salt/grains/core.py | 7 +++++++ 1 file changed, 7 insertions(+) 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