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

Could not find the env.awsfab_settings_module #13

Closed
robbernabe opened this issue Feb 13, 2014 · 2 comments
Closed

Could not find the env.awsfab_settings_module #13

robbernabe opened this issue Feb 13, 2014 · 2 comments

Comments

@robbernabe
Copy link

Awesome package, super useful!

With the utility installed, I get the following error when I run my standard fabric tasks:

$ fab pull
/Users/rbernabe/virtualenvs/puppet/lib/python2.7/site-packages/awsfabrictasks/conf.py:35: UserWarning: Could not find the env.awsfab_settings_module. Make sure you run run awsfab tasks using the ``awsfab`` command (not fab)?
warn('Could not find the env.awsfab_settings_module. Make sure you run run awsfab tasks using the ``awsfab`` command (not fab)?')
[puppet-east.xxxx.com] Executing task 'pull'
[puppet-east.xxxx.com] run: git pull
[puppet-east.xxxx.com] out: Already up-to-date.
[puppet-east.xxxx.com] out:

Done.
Disconnecting from puppet-east.xxxx.com... done.

Should I be using awsfab even for my non aws-specific tasks?

@espenak
Copy link
Owner

espenak commented Feb 13, 2014

Great that you find it useful:)

You do not have to use awsfab for non aws-specific task. Some of the built-in tasks get their defaults for keyword arguments from awsfabsettings.conf.awsfab_settings which causes this warning when you are importing them without awsfab. You have a few choices:

  • Ignore the warning.
  • Run all tasks using awsfab. You should not have any problems with this since awsfab extends fabric and adds a few cli options, a library of tasks and a configuration system. In other words it should be 100% compatible with fabric unless they add new options that name-crash with awsfab.
  • Put awsfab tasks in another file and run awsfab -f otherfile.py.

@robbernabe
Copy link
Author

Perfect. Thanks for the quick response!

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

No branches or pull requests

2 participants