Lines 737-745
class Node(PersistentCached):
|
Link Here
|
---|
|
737 |
self.write_novnc_tokens() |
737 |
self.write_novnc_tokens() |
738 |
|
738 |
|
739 |
def write_novnc_tokens(self): |
739 |
def write_novnc_tokens(self): |
740 |
path = os.path.join(self.cache_dir, 'novnc.tokens', uri_encode(self.pd.uri)) |
740 |
token_dir = os.path.join(self.cache_dir, 'novnc.tokens') |
|
|
741 |
path = os.path.join(token_dir, uri_encode(self.pd.uri)) |
741 |
logger.debug("Writing noVNC tokens to '%s'", path) |
742 |
logger.debug("Writing noVNC tokens to '%s'", path) |
742 |
with tempfile.NamedTemporaryFile(delete=False) as tmp_file: |
743 |
with tempfile.NamedTemporaryFile(delete=False, dir=token_dir) as tmp_file: |
743 |
for uuid, domStat in self.domains.iteritems(): |
744 |
for uuid, domStat in self.domains.iteritems(): |
744 |
try: |
745 |
try: |
745 |
gfx = domStat.pd.graphics[0] |
746 |
gfx = domStat.pd.graphics[0] |
746 |
- |
|
|