saltstack/salt-cloud — pull request #182 by techhat (2012-12-03 16:47:09+00:00)
Title: Passing "None" argument to quiet down weird error

This started happening because of pull req #179:

Traceback (most recent call last):
File "/usr/bin/salt-cloud", line 14, in
main()
File "/usr/bin/salt-cloud", line 10, in main
cloud.run()
File "/usr/lib/python2.7/site-packages/saltcloud/cli.py", line 72, in run
mapper.size_list(self.options.list_sizes)
File "/usr/lib/python2.7/site-packages/saltcloud/cloud.py", line 132, in size_list
sizes[prov] = self.clouds[fun]()
TypeError: avail_sizes() takes exactly 1 argument (0 given)

The weird thing is, avail_sizes() calls for conn=None, which shouldn't make it required. But passing in None seems to fix it, at least for the moment.