Wrote Yum Plugin – Got A Question About Arguments

Home » CentOS » Wrote Yum Plugin – Got A Question About Arguments
CentOS No Comments

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