def item_show(item, item_id=None, item_type=None, show='show', extra_args=None, cibfile=None):
 cmd = ['pcs']
 if isinstance(cibfile, six.string_types):
  cmd += ['-f', cibfile]
 if isinstance(item, six.string_types):
  cmd += [item]
 elif isinstance(item, (list, tuple)):
  cmd += item
 if (item in ['constraint']):
  cmd += [item_type]
 if isinstance(show, six.string_types):
  cmd += [show]
 elif isinstance(show, (list, tuple)):
  cmd += show
 if isinstance(item_id, six.string_types):
  cmd += [item_id]
 if isinstance(extra_args, (list, tuple)):
  cmd += extra_args
 if (item in ['constraint']):
  if ((not isinstance(extra_args, (list, tuple))) or ('--full' not in extra_args)):
   cmd += ['--full']
 return __salt__['cmd.run_all'](cmd, output_loglevel='trace', python_shell=False)

def item_show ( item , item_id = None , item_type = None , show = 'show' , extra_args = None , cibfile = None ) : cmd = [ 'pcs' ] if isinstance ( cibfile , six . string_types ) : cmd += [ '-f' , cibfile ] if isinstance ( item , six . string_types ) : cmd += [ item ] elif isinstance ( item , ( list , tuple ) ) : cmd += item if ( item in [ 'constraint' ] ) : cmd += [ item_type ] if isinstance ( show , six . string_types ) : cmd += [ show ] elif isinstance ( show , ( list , tuple ) ) : cmd += show if isinstance ( item_id , six . string_types ) : cmd += [ item_id ] if isinstance ( extra_args , ( list , tuple ) ) : cmd += extra_args if ( item in [ 'constraint' ] ) : if ( ( not isinstance ( extra_args , ( list , tuple ) ) ) or ( '--full' not in extra_args ) ) : cmd += [ '--full' ] return __salt__ [ 'cmd.run_all' ] ( cmd , output_loglevel = 'trace' , python_shell = False )
show an item via pcs command item config .