Fix for Heat Salt Formula
Add correct stack_absent delete handling to prevent playing
in russian roulette. Now if stack is deleted before it's polled,
_poll_for_complete handle it correctly, without raising incorrect
exception.
Also dirty hack with sys.path.insert is removed.
Related-Issue: PROD-22102
Change-Id: I7f994c26304069052344c881b34e540e49fd5a32
diff --git a/_modules/heatv1/__init__.py b/_modules/heatv1/__init__.py
index 51d90b4..45c5cdb 100644
--- a/_modules/heatv1/__init__.py
+++ b/_modules/heatv1/__init__.py
@@ -11,14 +11,8 @@
except ImportError:
REQUIREMENTS_MET = False
-import os
-import sys
-# i failed to load module witjout this
-# seems bugs in salt or it is only me
-sys.path.insert(0, os.path.abspath(os.path.dirname(__file__)))
-
-import stack
+from heatv1 import stack
stack_create = stack.stack_create
stack_delete = stack.stack_delete