saltstack/salt — pull request #1607 by jagster02 (2012-07-11 01:39:16+00:00)
Title: Fixes syndic init failure due to cli attribute error

Introduced in commit https://github.com/saltstack/salt/commit/3f6b4ac7b855edf929fec5fc986e97d2d09720af

It seems like a premature call to __prep_opts() in __parse_cli causes a AttributeError when it tries to access self.cli. self.cli itself is not set until the parse_cli function itself returns.

Fixing this by passing in the cli dict to prep_opts. Confirmed that the syndic now starts up properly.