Skip to content
This repository has been archived by the owner on Mar 24, 2022. It is now read-only.

Commit

Permalink
Fix SyntaxWarning: import * only allowed at module level.
Browse files Browse the repository at this point in the history
  • Loading branch information
s0undt3ch committed Feb 16, 2013
1 parent dcd78d1 commit 8b97477
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions saltcloud/clouds/botocore_aws.py
Expand Up @@ -32,6 +32,11 @@
from saltcloud.utils import namespaced_function
from saltcloud.libcloudfuncs import *

# Import libcloud_aws, required to latter patch __opts__
from saltcloud.clouds import libcloud_aws
# Now let's import each of the defined module's functions and attributes
from saltcloud.clouds.libcloud_aws import *

# Import salt libs
from salt.exceptions import SaltException

Expand All @@ -52,11 +57,8 @@ def __virtual__():
# instead.
return False

from saltcloud.clouds import libcloud_aws
# "Patch" the imported libcloud_aws to have the current __opts__
libcloud_aws.__opts__ = __opts__
# Now let's import each of the defined module's functions and attributes
from saltcloud.clouds.libcloud_aws import *

confs = [
'AWS.id',
Expand Down

0 comments on commit 8b97477

Please sign in to comment.