Permalink
Browse files

changes to make epumgmt work

  • Loading branch information...
1 parent b4d94dc commit 2741779ce8449bf714e918df5837b4e28f70cc83 BuzzTroll committed Oct 3, 2010
Showing with 10 additions and 0 deletions.
  1. +10 −0 cloudminer/cloudminer.py
@@ -82,10 +82,20 @@ def __init__(self, dburl, module=None):
self.Session = sessionmaker(bind=self.engine)
self.session = self.Session()
+ def add_cloudyvent_vm(self, runname, iaasid):
+ cyvm = self.get_by_iaasid(iaasid)
+ if cyvm == None:
+ cyvm = _CYVM(runname, iaasid)
+ self.session.add(cyvm)
+ return True
+ return False
+
+
def add_cloudyvent(self, runname, iaasid, cyv):
# first see if we already have this iaasid. if not create it
cyvm = self.get_by_iaasid(iaasid)
+ print iaasid
if cyvm == None:
cyvm = _CYVM(runname, iaasid)
self.session.add(cyvm)

0 comments on commit 2741779

Please sign in to comment.