Re: [ansible-project] Subclassing ansible.utils.display.Display in custom callback plugin

2020-07-08 Thread piete...@gmail.com
sent offline email to Nagesh with code samples

Op dinsdag 7 juli 2020 om 16:48:32 UTC+2 schreef nage...@gmail.com:

> Hi Pieter,
>
> sorry for the confus,
>
> i would like to see output like below:
>
> *Socket Locator* *Status* *Size* *Max Supported Frequency* *Technology*
> PROC 1 DIMM 3  Good, In Use 32.00 GB 2666 MHz RDIMM
>
> now i am getting below output and it's hard to read so do you have any 
> example plugin which can show like above
>
> socket 9:
> frequency: 1600 MHz
> hp_smart_memory: 'Yes'
> minimum_voltage: 1.50 v
> part:
>   number: 647651-081
> ranks: 1
> size: 8192 MB
> socket: 9
> status: Good, In Use
> technology: RDIMM
> type: DIMM DDR3
>
>
> On Tue, Jul 7, 2020 at 9:31 AM piete...@gmail.com  
> wrote:
>
>> Hi ,
>>
>> excuse me, but I don't get the question here...  How can I help you ?
>>
>> Op dinsdag 7 juli 2020 om 16:04:32 UTC+2 schreef nage...@gmail.com:
>>
>>> Hi peter,
>>>
>>> if you don't mind please send me output, i would like to get something 
>>> like below 
>>>
>>> *Socket Locator* *Status* *Size* *Max Supported Frequency* *Technology* 
>>> PROC 1 DIMM 3  Good, In Use 32.00 GB 2666 MHz RDIMM
>>>
>>> On Tue, Jul 7, 2020 at 5:19 AM piete...@gmail.com  
>>> wrote:
>>>
 Hi all,

 please allow me to ask for any help here...
 I once wrote a custom callback plugin, where I 
 subclassed ansible.utils.display.Display so I could overrule it's 
 display() 
 method to manipulate the message to be printed, and then call 
 super(Display, self).display(.
 Since Ansible 2.8 the Display object is now a singleton, instantiated 
 right at 'ansible-playbook'. This means a cannot modify the 
 Display.display() anymore  right ?

 Any ideas on how to call a customized display() method ?

 Thanks in advance for any help.

 Pieter.

 -- 
 You received this message because you are subscribed to the Google 
 Groups "Ansible Project" group.
 To unsubscribe from this group and stop receiving emails from it, send 
 an email to ansible-proje...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/ansible-project/bb33b941-7efb-4ec8-83ce-82e2dfb8db92n%40googlegroups.com
  
 
 .

>>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Ansible Project" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to ansible-proje...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ansible-project/a106eb27-1960-4b21-8ee1-6b1dedbb9ca2n%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/2bf8a911-2b66-4519-8863-583bb888dd90n%40googlegroups.com.


Re: [ansible-project] Subclassing ansible.utils.display.Display in custom callback plugin

2020-07-07 Thread Nagesh sheregar
Hi Pieter,

sorry for the confus,

i would like to see output like below:

*Socket Locator* *Status* *Size* *Max Supported Frequency* *Technology*
PROC 1 DIMM 3  Good, In Use 32.00 GB 2666 MHz RDIMM

now i am getting below output and it's hard to read so do you have any
example plugin which can show like above

socket 9:
frequency: 1600 MHz
hp_smart_memory: 'Yes'
minimum_voltage: 1.50 v
part:
  number: 647651-081
ranks: 1
size: 8192 MB
socket: 9
status: Good, In Use
technology: RDIMM
type: DIMM DDR3


On Tue, Jul 7, 2020 at 9:31 AM piete...@gmail.com 
wrote:

> Hi ,
>
> excuse me, but I don't get the question here...  How can I help you ?
>
> Op dinsdag 7 juli 2020 om 16:04:32 UTC+2 schreef nage...@gmail.com:
>
>> Hi peter,
>>
>> if you don't mind please send me output, i would like to get something
>> like below
>>
>> *Socket Locator* *Status* *Size* *Max Supported Frequency* *Technology*
>> PROC 1 DIMM 3  Good, In Use 32.00 GB 2666 MHz RDIMM
>>
>> On Tue, Jul 7, 2020 at 5:19 AM piete...@gmail.com 
>> wrote:
>>
>>> Hi all,
>>>
>>> please allow me to ask for any help here...
>>> I once wrote a custom callback plugin, where I
>>> subclassed ansible.utils.display.Display so I could overrule it's display()
>>> method to manipulate the message to be printed, and then call
>>> super(Display, self).display(.
>>> Since Ansible 2.8 the Display object is now a singleton, instantiated
>>> right at 'ansible-playbook'. This means a cannot modify the
>>> Display.display() anymore  right ?
>>>
>>> Any ideas on how to call a customized display() method ?
>>>
>>> Thanks in advance for any help.
>>>
>>> Pieter.
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Ansible Project" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to ansible-proje...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/ansible-project/bb33b941-7efb-4ec8-83ce-82e2dfb8db92n%40googlegroups.com
>>> 
>>> .
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/a106eb27-1960-4b21-8ee1-6b1dedbb9ca2n%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAFu5ZNwjWvU3wqxtFjoLXcdB-0QdVfG4UVL5iS0%2BzKWEZrferg%40mail.gmail.com.


Re: [ansible-project] Subclassing ansible.utils.display.Display in custom callback plugin

2020-07-07 Thread piete...@gmail.com
Hi ,

excuse me, but I don't get the question here...  How can I help you ?

Op dinsdag 7 juli 2020 om 16:04:32 UTC+2 schreef nage...@gmail.com:

> Hi peter,
>
> if you don't mind please send me output, i would like to get something 
> like below 
>
> *Socket Locator* *Status* *Size* *Max Supported Frequency* *Technology* 
> PROC 1 DIMM 3  Good, In Use 32.00 GB 2666 MHz RDIMM
>
> On Tue, Jul 7, 2020 at 5:19 AM piete...@gmail.com  
> wrote:
>
>> Hi all,
>>
>> please allow me to ask for any help here...
>> I once wrote a custom callback plugin, where I 
>> subclassed ansible.utils.display.Display so I could overrule it's display() 
>> method to manipulate the message to be printed, and then call 
>> super(Display, self).display(.
>> Since Ansible 2.8 the Display object is now a singleton, instantiated 
>> right at 'ansible-playbook'. This means a cannot modify the 
>> Display.display() anymore  right ?
>>
>> Any ideas on how to call a customized display() method ?
>>
>> Thanks in advance for any help.
>>
>> Pieter.
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Ansible Project" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to ansible-proje...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ansible-project/bb33b941-7efb-4ec8-83ce-82e2dfb8db92n%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/a106eb27-1960-4b21-8ee1-6b1dedbb9ca2n%40googlegroups.com.


Re: [ansible-project] Subclassing ansible.utils.display.Display in custom callback plugin

2020-07-07 Thread Nagesh sheregar
Hi peter,

if you don't mind please send me output, i would like to get something like
below

*Socket Locator* *Status* *Size* *Max Supported Frequency* *Technology*
PROC 1 DIMM 3  Good, In Use 32.00 GB 2666 MHz RDIMM

On Tue, Jul 7, 2020 at 5:19 AM piete...@gmail.com 
wrote:

> Hi all,
>
> please allow me to ask for any help here...
> I once wrote a custom callback plugin, where I
> subclassed ansible.utils.display.Display so I could overrule it's display()
> method to manipulate the message to be printed, and then call
> super(Display, self).display(.
> Since Ansible 2.8 the Display object is now a singleton, instantiated
> right at 'ansible-playbook'. This means a cannot modify the
> Display.display() anymore  right ?
>
> Any ideas on how to call a customized display() method ?
>
> Thanks in advance for any help.
>
> Pieter.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/bb33b941-7efb-4ec8-83ce-82e2dfb8db92n%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAFu5ZNxu%2B%2BZDHWPqCcQuKn_RBcXcTCb1796GntyM5SF6kqBbeA%40mail.gmail.com.


[ansible-project] Subclassing ansible.utils.display.Display in custom callback plugin

2020-07-07 Thread piete...@gmail.com
Hi all,

please allow me to ask for any help here...
I once wrote a custom callback plugin, where I 
subclassed ansible.utils.display.Display so I could overrule it's display() 
method to manipulate the message to be printed, and then call 
super(Display, self).display(.
Since Ansible 2.8 the Display object is now a singleton, instantiated right 
at 'ansible-playbook'. This means a cannot modify the Display.display() 
anymore  right ?

Any ideas on how to call a customized display() method ?

Thanks in advance for any help.

Pieter.

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/bb33b941-7efb-4ec8-83ce-82e2dfb8db92n%40googlegroups.com.