Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError if http_proxy or https_proxy are missing #222

Open
kylegibson opened this issue Nov 18, 2014 · 2 comments
Open

AttributeError if http_proxy or https_proxy are missing #222

kylegibson opened this issue Nov 18, 2014 · 2 comments
Labels

Comments

@kylegibson
Copy link

The documentation says that I only need to set http_proxy or https_proxy if I'm using a proxy. However, I get the following traceback when trying to deploy:

  File "/home/vagrant/PolicyStat/pstat/pstat_deploy/provisioners/pstat/littlechef_provisioner.py", line 34, in do_first_launch_config
    lc.deploy_chef(ask="no", version=self.version, method=self.method)
  File "/home/vagrant/env/lib/python2.6/site-packages/littlechef/runner.py", line 218, in deploy_chef
    solo.configure()
  File "/home/vagrant/env/lib/python2.6/site-packages/littlechef/solo.py", line 105, in configure
    'https_proxy': env.https_proxy
  File "/home/vagrant/env/lib/python2.6/site-packages/fabric/utils.py", line 193, in __getattr__
    raise AttributeError(key)
AttributeError: https_proxy

https://github.com/tobami/littlechef/blob/master/littlechef/solo.py#L104

I was able to work around this issue by setting them both to blank.

from littlechef import runner as lc
...
lc.env.http_proxy = ''
lc.env.https_proxy = ''
lc.deploy_chef(ask="no", method='omnibus')
@tobami
Copy link
Owner

tobami commented Nov 19, 2014

That must be a bug that only appears when you use it as a library, instead of from the command line.

@haad
Copy link

haad commented Nov 22, 2014

This should be fixed with 1ef3df7 on my repo. I will request pull up
tomorrow but I'm afraid that with so many changes it might be difficult.

On Tue, Nov 18, 2014 at 8:49 PM, Kyle Gibson [email protected]
wrote:

The documentation says that I only need to set http_proxy or https_proxy
if I'm using a proxy. However, I get the following traceback when trying to
deploy:

File "/home/vagrant/PolicyStat/pstat/pstat_deploy/provisioners/pstat/littlechef_provisioner.py", line 34, in do_first_launch_config
lc.deploy_chef(ask="no", version=self.version, method=self.method)
File "/home/vagrant/env/lib/python2.6/site-packages/littlechef/runner.py", line 218, in deploy_chef
solo.configure()
File "/home/vagrant/env/lib/python2.6/site-packages/littlechef/solo.py", line 105, in configure
'https_proxy': env.https_proxy
File "/home/vagrant/env/lib/python2.6/site-packages/fabric/utils.py", line 193, in getattr
raise AttributeError(key)
AttributeError: https_proxy

https://github.com/tobami/littlechef/blob/master/littlechef/solo.py#L104

I was able to work around this issue by setting them both to blank.

from littlechef import runner as lc
...
lc.env.http_proxy = ''
lc.env.https_proxy = ''
lc.deploy_chef(ask="no", method='omnibus')


Reply to this email directly or view it on GitHub
#222.

Regards.

Adam

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

No branches or pull requests

3 participants