def get_pending_computer_name():
 current = get_computer_name()
 pending = __salt__['reg.read_value']('HKLM', 'SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters', 'NV Hostname')['vdata']
 if pending:
  return (pending if (pending != current) else None)
 return False

def get_pending_computer_name ( ) : current = get_computer_name ( ) pending = __salt__ [ 'reg.read_value' ] ( 'HKLM' , 'SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters' , 'NV Hostname' ) [ 'vdata' ] if pending : return ( pending if ( pending != current ) else None ) return False
get a pending computer name .