def update(self, client):
update_cmd = "<STR_LIT>".format(<EOL>sudo=self.get_sudo_exec_wrapper(),<EOL>refresh=self.get_refresh_repo_cmd(),<EOL>update=self.get_update_cmd()<EOL>)<EOL>out = '<STR_LIT>'<EOL>try:<EOL><INDENT>out = ipa_utils.execute_ssh_command(<EOL>client,<EOL>update_cmd<EOL>)<EOL><DEDENT>except Exception as error:<EOL><INDENT>raise IpaDistroException(<EOL>'<STR_LIT>' % error<EOL>)<EOL><DEDENT>return out<EOL>
Execute update command on instance.