diff --git a/salt/utils/parsers.py b/salt/utils/parsers.py index 1d288f735560..387a79e3f564 100644 --- a/salt/utils/parsers.py +++ b/salt/utils/parsers.py @@ -293,6 +293,8 @@ def process_saltfile(self): saltfile = os.path.join(os.getcwd(), 'Saltfile') if os.path.isfile(saltfile): self.options.saltfile = saltfile + else: + saltfile = self.options.saltfile if not self.options.saltfile: # There's still no valid Saltfile? No need to continue...