Use generate password functions from dist

use generate password function directly from dist, because we
got rhel and sles support, use linux dist abstraction will
make it easier to add new code.

Change-Id: Idac3631e9a564587ba82237b482c17b46b868f29
This commit is contained in:
jichenjc
2015-04-12 06:15:51 +08:00
parent 0d247e19d6
commit 152742168b
3 changed files with 9 additions and 7 deletions

View File

@@ -588,7 +588,8 @@ class ZVMDriverTestCases(ZVMTestCase):
'fakeimg')
instance.ZVMInstance.deploy_node('fakeimg',
'/temp/os000001/configdrive.tgz')
zvmutils.punch_adminpass_file(mox.IgnoreArg(), 'os000001', 'pass')
zvmutils.punch_adminpass_file(mox.IgnoreArg(), 'os000001', 'pass',
mox.IgnoreArg())
zvmutils.punch_xcat_auth_file(mox.IgnoreArg(), 'os000001')
zvmutils.process_eph_disk('os000001', mox.IgnoreArg(), mox.IgnoreArg(),
mox.IgnoreArg())