Wrote Yum Plugin - got a question about arguments

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hello Guys

I have written a small yum plugin. My question: How can I convert the
arguments to a string to output them inside a hook.

I can use many programming languages, but unfortunately no python to
understand the documentation properly.

http://yum.baseurl.org/api/yum-3.2.26/yum.plugins.ArgsPluginConduit-cla
ss.html

def init_hook(conduit):
    conduit.info(2, 'Hello world')
    conduit.getArgs()

InitPluginConduit instance has no attribute 'getArgs'

No matter if i put it into pretrans_hook or posttrans_hook.

This time i take " ".join(commands).

Thanks

Andy

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux