Replaces uuid.uuid4 with uuidutils.generate_uuid()
Change-Id: Ib72d9e74c70437678c72cebc31aee60a9e140e23 Closes-Bug: #1082248
This commit is contained in:
parent
705555364f
commit
e3f6ad4af8
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue