def repo_refresh(m):
 retvals = {'rc': 0, 'stdout': '', 'stderr': ''}
 cmd = get_cmd(m, 'refresh')
 retvals['cmd'] = cmd
 (result, retvals['rc'], retvals['stdout'], retvals['stderr']) = parse_zypper_xml(m, cmd)
 return retvals

def repo_refresh ( m ) : retvals = { 'rc' : 0 , 'stdout' : '' , 'stderr' : '' } cmd = get_cmd ( m , 'refresh' ) retvals [ 'cmd' ] = cmd ( result , retvals [ 'rc' ] , retvals [ 'stdout' ] , retvals [ 'stderr' ] ) = parse_zypper_xml ( m , cmd ) return retvals
update the repositories .