Skip to content
This repository has been archived by the owner on Jul 26, 2021. It is now read-only.

Pythonic access to execution modules #5

Open
mgwilliams opened this issue Feb 15, 2014 · 0 comments
Open

Pythonic access to execution modules #5

mgwilliams opened this issue Feb 15, 2014 · 0 comments

Comments

@mgwilliams
Copy link
Contributor

The way the renderer currently is coded, you can do stuff like this (a contrived example):

interfaces = salt['network.interfaces']()
File.exists('interface-tmp', names=['/tmp/interface-{}'.format(i) for i in interfaces.keys()])

Would it make sense to provide more pythonic access to the execution modules? E.g.:

interfaces = Salt.Network.interfaces()

I'm not sure it gains much, just throwing the idea out there.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant