|
@@ -33,8 +33,10 @@ import platform
|
|
|
from pwd import getpwnam
|
|
|
from ambari_server.resourceFilesKeeper import ResourceFilesKeeper, KeeperException
|
|
|
|
|
|
-# We have to use this import HACK because the filename contains a dash
|
|
|
-ambari_server = __import__('ambari-server')
|
|
|
+with patch("platform.linux_distribution", return_value = ('Suse','11','Final')):
|
|
|
+ # We have to use this import HACK because the filename contains a dash
|
|
|
+ ambari_server = __import__('ambari-server')
|
|
|
+
|
|
|
FatalException = ambari_server.FatalException
|
|
|
NonFatalException = ambari_server.NonFatalException
|
|
|
|