Skip to content

Commit

Permalink
remove XenAPI dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
nuboshcodeman committed Apr 28, 2016
1 parent 24e3c8d commit d284e20
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 13 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -0,0 +1 @@
*.pyc
2 changes: 0 additions & 2 deletions XSConsoleAuth.py
Expand Up @@ -22,8 +22,6 @@
from XSConsoleState import *
from XSConsoleUtils import *

import XenAPI

class Auth:
instance = None

Expand Down
2 changes: 0 additions & 2 deletions XSConsoleData.py
Expand Up @@ -13,8 +13,6 @@
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

import XenAPI

import commands, re, shutil, sys, tempfile, socket, os
from pprint import pprint
from simpleconfig import SimpleConfigFile
Expand Down
2 changes: 0 additions & 2 deletions XSConsoleHotData.py
Expand Up @@ -13,8 +13,6 @@
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

import XenAPI

import commands, re, shutil, sys, socket
from pprint import pprint

Expand Down
10 changes: 4 additions & 6 deletions XSConsoleLang.py
Expand Up @@ -16,8 +16,6 @@
from XSConsoleConfig import *
from XSConsoleLangErrors import *

import XenAPI # For XenAPI.Failure


# Global function
def Lang(inLabel, inPad = 0):
Expand Down Expand Up @@ -76,10 +74,10 @@ def LogError(cls, inValue): # For internal use

@classmethod
def ToString(cls, inLabel):
if isinstance(inLabel, XenAPI.Failure):
retVal = cls.XapiError(inLabel.details)
cls.LogError(retVal)
elif isinstance(inLabel, Exception):
#if isinstance(inLabel, XenAPI.Failure):
# retVal = cls.XapiError(inLabel.details)
# cls.LogError(retVal)
if isinstance(inLabel, Exception):
exn_strings = []
for arg in inLabel.args:
if isinstance(arg, unicode):
Expand Down
1 change: 0 additions & 1 deletion XSConsoleMetrics.py
Expand Up @@ -13,7 +13,6 @@
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

import XenAPI
import urllib
import xml.dom.minidom

Expand Down

0 comments on commit d284e20

Please sign in to comment.