
    VhQ                     T    d dl mZmZmZ eZd dlmZmZ ddddddZ	d	 Z
d
 Zd Zd Zy)    )absolute_importdivisionprint_function)	CmdRunnercmd_runner_fmtcreateremovestatusenabledisable)presentabsentr
   enableddisabledc                 V    dD cg c]  }| j                  |      | |    c}S c c}w )N)resource_standardresource_providerresource_name)get)valueks     t/home/dcms/DCMS/lib/python3.12/site-packages/ansible_collections/community/general/plugins/module_utils/pacemaker.pyfmt_resource_typer      s,    Yv]b]f]fgh]i]uE!Hvvvs   &&c                     g }| D ]Z  }|j                  d       |j                  |j                  d             |j                  d      D ]  }|j                  |        \ |S )Nopoperation_actionoperation_option)appendr   )r   cmdr   r   s       r   fmt_resource_operationr       sf    
C )

4

266,-. "'9 : 	)JJ'(	)) J    c                 .    | d   dk(  rdn| d   g| d   z   S )Nargument_actiongroupz--groupargument_option )r   s    r   fmt_resource_argumentr'   $   s,    01W<I%HYBZ[^cdu^vvvr!   c                    t        | fd|gt        t        j                  t              t        j
                         t        j                  t              t        j
                         t        j                  t               t        j                  t        j                        d      t        j                  t              t        j                  d            d|}|S )Npcsmetaz--wait)statenameresource_typeresource_optionresource_operationresource_metaresource_argumentwait)commandarg_formats)r   dictr   as_map
_state_mapas_listas_funcr   r    stack
as_opt_valr'   as_opt_eq_val)module
cli_actionkwargsrunners       r   pacemaker_runnerrA   (   s    
# ''
3'')(001BC*224-556LMI...~/H/HI&Q,445JK--h7	
 F Mr!   N)
__future__r   r   r   type__metaclass__Eansible_collections.community.general.plugins.module_utils.cmd_runnerr   r   r7   r   r    r'   rA   r&   r!   r   <module>rF      sD    A @ k 
wwr!   