From 59bae6e497e45ff6f7d8ba02b8dc1855b4ca73f0 Mon Sep 17 00:00:00 2001 From: Anders Ingemann Date: Sat, 13 Jul 2013 15:01:56 +0200 Subject: [PATCH] Create unique identifier in BootstrapInformation Can be used to uniquely name temporary resources --- base/bootstrapinfo.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/base/bootstrapinfo.py b/base/bootstrapinfo.py index 9a72a8a..4d9d4df 100644 --- a/base/bootstrapinfo.py +++ b/base/bootstrapinfo.py @@ -3,4 +3,6 @@ class BootstrapInformation(object): def __init__(self, manifest=None, debug=False): self.manifest = manifest - self.debug = debug + self.debug = debug + import random + self.run_id = random.randrange(16**8)