diff options
| author | Chris Behrens <cbehrens@codestud.com> | 2011-03-31 09:01:01 -0700 |
|---|---|---|
| committer | Chris Behrens <cbehrens@codestud.com> | 2011-03-31 09:01:01 -0700 |
| commit | b39a0eabd507f804300c1741b768cf3c2584393d (patch) | |
| tree | 1ee2b455f832bbb673951d7c527f322c7c8df3de /plugins | |
| parent | cf89dea62e777bb3052f3a178e38d0b665c1983d (diff) | |
| download | nova-b39a0eabd507f804300c1741b768cf3c2584393d.tar.gz nova-b39a0eabd507f804300c1741b768cf3c2584393d.tar.xz nova-b39a0eabd507f804300c1741b768cf3c2584393d.zip | |
need to support python2.4, so can't use uuid module
Diffstat (limited to 'plugins')
| -rwxr-xr-x | plugins/xenserver/xenapi/etc/xapi.d/plugins/agent | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/xenserver/xenapi/etc/xapi.d/plugins/agent b/plugins/xenserver/xenapi/etc/xapi.d/plugins/agent index 5c5a6d645..5496a6bd5 100755 --- a/plugins/xenserver/xenapi/etc/xapi.d/plugins/agent +++ b/plugins/xenserver/xenapi/etc/xapi.d/plugins/agent @@ -23,6 +23,7 @@ # import base64 +import commands try: import json except ImportError: @@ -32,7 +33,6 @@ import random import subprocess import tempfile import time -import uuid import XenAPIPlugin @@ -158,7 +158,7 @@ def _agent_has_method(self, method): self._agent_methods = [] if not self._agent_methods: # Haven't been defined - tmp_id = str(uuid.uuid4()) + tmp_id = commands.getoutput("uuidgen") dct = {} dct["value"] = json.dumps({"name": "features", "value": ""}) dct["path"] = "data/host/%s" % tmp_id |
