Passing 'process_input' to the running hpssacli process

This commit adds support to pass 'process_input' param of
processutils to the running hpssacli process while executing
hpssacli commands.

The hpssacli process waits for the input as 'y' or 'n' to
proceed further which leads to 'OutofMemory Error' if not
provided with the input.

Closes-Bug: #1589373
Change-Id: Ie3b1a2a42552a347aa0ab548b37d467577440d8b
This commit is contained in:
Aparna
2016-06-06 05:28:04 +00:00
parent 4ff5f83401
commit ef6f7095ec
3 changed files with 17 additions and 13 deletions

View File

@@ -392,7 +392,7 @@ class Controller(object):
size_mb = logical_drive_info['size_gb'] * 1024
cmd_args.append("size=%s" % size_mb)
self.execute_cmd(*cmd_args)
self.execute_cmd(*cmd_args, process_input='y')
def delete_all_logical_drives(self):
"""Deletes all logical drives on trh controller.