Replaces uuid.uuid4 with uuidutils.generate_uuid()

Change-Id: Ib72d9e74c70437678c72cebc31aee60a9e140e23
Closes-Bug: #1082248
This commit is contained in:
Luong Anh Tuan 2016-11-07 13:12:29 +07:00
parent 705555364f
commit e3f6ad4af8
1 changed files with 2 additions and 3 deletions

View File

@ -13,9 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import uuid
import six
from oslo_utils import uuidutils
from sahara.plugins import utils as u
from sahara.service.castellan import utils as castellan
@ -62,5 +61,5 @@ def get_instance_hostname(instance):
def generate_random_password():
password = six.text_type(uuid.uuid4())
password = uuidutils.generate_uuid()
return castellan.store_secret(password)