Skip to content

Commit

Permalink
CA-134864: Fix plugin call for SXM.
Browse files Browse the repository at this point in the history
Signed-off-by: Siddharth Vinothkumar <siddharth.vinothkumar@citrix.com>
Reviewed-by: Chandrika Srinivasan <chandrika.srinivasan@citrix.com>

GitHub: closes #175 on xapi-project/sm
  • Loading branch information
siddharthv authored and chandrikas committed Jul 7, 2014
1 parent b890746 commit 209521b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/LVHDSR.py
Original file line number Diff line number Diff line change
Expand Up @@ -2044,9 +2044,9 @@ def _prepareThin(self, attach):
fn = "detach"
pools = self.session.xenapi.pool.get_all()
master = self.session.xenapi.pool.get_master(pools[0])
rv = eval(self.session.xenapi.host.call_plugin(
rv = self.session.xenapi.host.call_plugin(
master, self.sr.THIN_PLUGIN, fn,
{"srUuid": self.sr.uuid, "vdiUuid": self.uuid}))
{"srUuid": self.sr.uuid, "vdiUuid": self.uuid})
util.SMlog("call-plugin returned: %s" % rv)
if not rv:
raise Exception('plugin %s failed' % self.sr.THIN_PLUGIN)
Expand Down

0 comments on commit 209521b

Please sign in to comment.