Ejemplo n.º 1
0
 def node_show():
     tb = linstordb.OutputData()
     if args.nocolor:
         tb.show_node_one(args.node) if args.node else tb.node_all()
     else:
         tb.show_node_one_color(
             args.node) if args.node else tb.node_all_color()
Ejemplo n.º 2
0
 def resource_show():
     tb = linstordb.OutputData()
     if args.nocolor:
         tb.show_res_one(
             args.resource) if args.resource else tb.res_all()
     else:
         tb.show_res_one_color(
             args.resource) if args.resource else tb.res_all_color()
Ejemplo n.º 3
0
 def storagepool_show():
     tb = linstordb.OutputData()
     if args.nocolor:
         tb.show_sp_one(
             args.storagepool) if args.storagepool else tb.sp_all()
     else:
         tb.show_sp_one_color(
             args.storagepool) if args.storagepool else tb.sp_all_color(
             )