Fixed 'Initiate OS Host Power Off' to work with non root username.

When using a OS_USERNAME that is not root (e.g. "ubuntu"),
'Initiate OS Host Power Off' fails because the user does not have the
authority to do 'shutdown'. Added code to do shutdown with "sudo".

Change-Id: Ie9cdadda393f98381a1edf028dd064d76c465d6e
Signed-off-by: Michael Walsh <micwalsh@us.ibm.com>
1 file changed