Skip to content

Commit

Permalink
Merge branch 'working' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
EdLeafe committed Aug 20, 2013
2 parents ea910ce + ac0b46c commit 0d5a18b
Show file tree
Hide file tree
Showing 62 changed files with 65 additions and 0 deletions.
3 changes: 3 additions & 0 deletions samples/auth_creds_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,15 @@
import pyrax
import pyrax.exceptions as exc

pyrax.set_setting("identity_type", "rackspace")

# Use a credential file in the format:
# [rackspace_cloud]
# username = myusername
# api_key = 01234567890abcdef
print
print "Using credentials file"
# Note: you can name this file whatever you like.
creds_file = os.path.expanduser("~/.rackspace_cloud_credentials")
try:
pyrax.set_credential_file(creds_file)
Expand Down
2 changes: 2 additions & 0 deletions samples/auth_direct.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
import pyrax
import pyrax.exceptions as exc

pyrax.set_setting("identity_type", "rackspace")

# Pass credentials directly (replace with your credentials)
print "Pass directly:"
try:
Expand Down
1 change: 1 addition & 0 deletions samples/cloud_blockstorage/attach_detach_volume.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

import pyrax

pyrax.set_setting("identity_type", "rackspace")
creds_file = os.path.expanduser("~/.rackspace_cloud_credentials")
pyrax.set_credential_file(creds_file)
cs = pyrax.cloudservers
Expand Down
1 change: 1 addition & 0 deletions samples/cloud_blockstorage/create_snapshot.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import pyrax
import pyrax.exceptions as exc

pyrax.set_setting("identity_type", "rackspace")
creds_file = os.path.expanduser("~/.rackspace_cloud_credentials")
pyrax.set_credential_file(creds_file)
cbs = pyrax.cloud_blockstorage
Expand Down
1 change: 1 addition & 0 deletions samples/cloud_blockstorage/create_volume.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import os
import pyrax

pyrax.set_setting("identity_type", "rackspace")
creds_file = os.path.expanduser("~/.rackspace_cloud_credentials")
pyrax.set_credential_file(creds_file)
cbs = pyrax.cloud_blockstorage
Expand Down
1 change: 1 addition & 0 deletions samples/cloud_blockstorage/delete_volume.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import os
import pyrax

pyrax.set_setting("identity_type", "rackspace")
creds_file = os.path.expanduser("~/.rackspace_cloud_credentials")
pyrax.set_credential_file(creds_file)
cbs = pyrax.cloud_blockstorage
Expand Down
1 change: 1 addition & 0 deletions samples/cloud_databases/add_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

import pyrax

pyrax.set_setting("identity_type", "rackspace")
creds_file = os.path.expanduser("~/.rackspace_cloud_credentials")
pyrax.set_credential_file(creds_file)
cdb = pyrax.cloud_databases
Expand Down
1 change: 1 addition & 0 deletions samples/cloud_databases/add_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

import pyrax

pyrax.set_setting("identity_type", "rackspace")
creds_file = os.path.expanduser("~/.rackspace_cloud_credentials")
pyrax.set_credential_file(creds_file)
cdb = pyrax.cloud_databases
Expand Down
1 change: 1 addition & 0 deletions samples/cloud_databases/create_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

import pyrax

pyrax.set_setting("identity_type", "rackspace")
creds_file = os.path.expanduser("~/.rackspace_cloud_credentials")
pyrax.set_credential_file(creds_file)
cdb = pyrax.cloud_databases
Expand Down
1 change: 1 addition & 0 deletions samples/cloud_databases/delete_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

import pyrax

pyrax.set_setting("identity_type", "rackspace")
creds_file = os.path.expanduser("~/.rackspace_cloud_credentials")
pyrax.set_credential_file(creds_file)
cdb = pyrax.cloud_databases
Expand Down
1 change: 1 addition & 0 deletions samples/cloud_databases/list_flavors.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

import pyrax

pyrax.set_setting("identity_type", "rackspace")
creds_file = os.path.expanduser("~/.rackspace_cloud_credentials")
pyrax.set_credential_file(creds_file)
cdb = pyrax.cloud_databases
Expand Down
1 change: 1 addition & 0 deletions samples/cloud_dns/add_ptr_records.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import pyrax.exceptions as exc


pyrax.set_setting("identity_type", "rackspace")
creds_file = os.path.expanduser("~/.rackspace_cloud_credentials")
pyrax.set_credential_file(creds_file)
dns = pyrax.cloud_dns
Expand Down
1 change: 1 addition & 0 deletions samples/cloud_dns/add_records.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import pyrax.exceptions as exc


pyrax.set_setting("identity_type", "rackspace")
creds_file = os.path.expanduser("~/.rackspace_cloud_credentials")
pyrax.set_credential_file(creds_file)
dns = pyrax.cloud_dns
Expand Down
1 change: 1 addition & 0 deletions samples/cloud_dns/create_domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import pyrax.exceptions as exc


pyrax.set_setting("identity_type", "rackspace")
creds_file = os.path.expanduser("~/.rackspace_cloud_credentials")
pyrax.set_credential_file(creds_file)
dns = pyrax.cloud_dns
Expand Down
1 change: 1 addition & 0 deletions samples/cloud_dns/create_subdomain.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import pyrax.exceptions as exc


pyrax.set_setting("identity_type", "rackspace")
creds_file = os.path.expanduser("~/.rackspace_cloud_credentials")
pyrax.set_credential_file(creds_file)
dns = pyrax.cloud_dns
Expand Down
1 change: 1 addition & 0 deletions samples/cloud_dns/delete_all_ptr_records.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import pyrax.exceptions as exc


pyrax.set_setting("identity_type", "rackspace")
creds_file = os.path.expanduser("~/.rackspace_cloud_credentials")
pyrax.set_credential_file(creds_file)
dns = pyrax.cloud_dns
Expand Down
1 change: 1 addition & 0 deletions samples/cloud_dns/delete_all_records.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import pyrax.exceptions as exc


pyrax.set_setting("identity_type", "rackspace")
creds_file = os.path.expanduser("~/.rackspace_cloud_credentials")
pyrax.set_credential_file(creds_file)
dns = pyrax.cloud_dns
Expand Down
1 change: 1 addition & 0 deletions samples/cloud_dns/delete_all_subdomains.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import pyrax.exceptions as exc


pyrax.set_setting("identity_type", "rackspace")
creds_file = os.path.expanduser("~/.rackspace_cloud_credentials")
pyrax.set_credential_file(creds_file)
dns = pyrax.cloud_dns
Expand Down
1 change: 1 addition & 0 deletions samples/cloud_dns/delete_domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import pyrax.exceptions as exc


pyrax.set_setting("identity_type", "rackspace")
creds_file = os.path.expanduser("~/.rackspace_cloud_credentials")
pyrax.set_credential_file(creds_file)
dns = pyrax.cloud_dns
Expand Down
1 change: 1 addition & 0 deletions samples/cloud_dns/iterate_domains.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import pyrax.exceptions as exc


pyrax.set_setting("identity_type", "rackspace")
creds_file = os.path.expanduser("~/.rackspace_cloud_credentials")
pyrax.set_credential_file(creds_file)
dns = pyrax.cloud_dns
Expand Down
1 change: 1 addition & 0 deletions samples/cloud_dns/list_domains.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import pyrax.exceptions as exc


pyrax.set_setting("identity_type", "rackspace")
creds_file = os.path.expanduser("~/.rackspace_cloud_credentials")
pyrax.set_credential_file(creds_file)
dns = pyrax.cloud_dns
Expand Down
1 change: 1 addition & 0 deletions samples/cloud_dns/list_ptr_records.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import pyrax.exceptions as exc


pyrax.set_setting("identity_type", "rackspace")
creds_file = os.path.expanduser("~/.rackspace_cloud_credentials")
pyrax.set_credential_file(creds_file)
dns = pyrax.cloud_dns
Expand Down
1 change: 1 addition & 0 deletions samples/cloud_dns/list_records.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import pyrax.exceptions as exc


pyrax.set_setting("identity_type", "rackspace")
creds_file = os.path.expanduser("~/.rackspace_cloud_credentials")
pyrax.set_credential_file(creds_file)
dns = pyrax.cloud_dns
Expand Down
1 change: 1 addition & 0 deletions samples/cloud_dns/list_subdomains.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import pyrax.exceptions as exc


pyrax.set_setting("identity_type", "rackspace")
creds_file = os.path.expanduser("~/.rackspace_cloud_credentials")
pyrax.set_credential_file(creds_file)
dns = pyrax.cloud_dns
Expand Down
1 change: 1 addition & 0 deletions samples/cloud_dns/update_domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import pyrax.exceptions as exc


pyrax.set_setting("identity_type", "rackspace")
creds_file = os.path.expanduser("~/.rackspace_cloud_credentials")
pyrax.set_credential_file(creds_file)
dns = pyrax.cloud_dns
Expand Down
1 change: 1 addition & 0 deletions samples/cloud_dns/update_ptr_record.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import pyrax.exceptions as exc


pyrax.set_setting("identity_type", "rackspace")
creds_file = os.path.expanduser("~/.rackspace_cloud_credentials")
pyrax.set_credential_file(creds_file)
dns = pyrax.cloud_dns
Expand Down
1 change: 1 addition & 0 deletions samples/cloud_loadbalancers/add_remove_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import pyrax


pyrax.set_setting("identity_type", "rackspace")
creds_file = os.path.expanduser("~/.rackspace_cloud_credentials")
pyrax.set_credential_file(creds_file)
clb = pyrax.cloud_loadbalancers
Expand Down
1 change: 1 addition & 0 deletions samples/cloud_loadbalancers/content_caching.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

import pyrax

pyrax.set_setting("identity_type", "rackspace")
creds_file = os.path.expanduser("~/.rackspace_cloud_credentials")
pyrax.set_credential_file(creds_file)
clb = pyrax.cloud_loadbalancers
Expand Down
1 change: 1 addition & 0 deletions samples/cloud_loadbalancers/create_lb.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import os
import pyrax

pyrax.set_setting("identity_type", "rackspace")
creds_file = os.path.expanduser("~/.rackspace_cloud_credentials")
pyrax.set_credential_file(creds_file)
clb = pyrax.cloud_loadbalancers
Expand Down
1 change: 1 addition & 0 deletions samples/cloud_loadbalancers/create_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import os
import pyrax

pyrax.set_setting("identity_type", "rackspace")
creds_file = os.path.expanduser("~/.rackspace_cloud_credentials")
pyrax.set_credential_file(creds_file)
clb = pyrax.cloud_loadbalancers
Expand Down
1 change: 1 addition & 0 deletions samples/cloud_loadbalancers/create_vip.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import os
import pyrax

pyrax.set_setting("identity_type", "rackspace")
creds_file = os.path.expanduser("~/.rackspace_cloud_credentials")
pyrax.set_credential_file(creds_file)
clb = pyrax.cloud_loadbalancers
Expand Down
1 change: 1 addition & 0 deletions samples/cloud_loadbalancers/get_lb_attributes.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

import pyrax

pyrax.set_setting("identity_type", "rackspace")
creds_file = os.path.expanduser("~/.rackspace_cloud_credentials")
pyrax.set_credential_file(creds_file)
clb = pyrax.cloud_loadbalancers
Expand Down
1 change: 1 addition & 0 deletions samples/cloud_loadbalancers/get_usage.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

import pyrax

pyrax.set_setting("identity_type", "rackspace")
creds_file = os.path.expanduser("~/.rackspace_cloud_credentials")
pyrax.set_credential_file(creds_file)
clb = pyrax.cloud_loadbalancers
Expand Down
1 change: 1 addition & 0 deletions samples/cloud_loadbalancers/list_algorithms.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import os
import pyrax

pyrax.set_setting("identity_type", "rackspace")
creds_file = os.path.expanduser("~/.rackspace_cloud_credentials")
pyrax.set_credential_file(creds_file)
clb = pyrax.cloud_loadbalancers
Expand Down
1 change: 1 addition & 0 deletions samples/cloud_loadbalancers/list_protocols.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import os
import pyrax

pyrax.set_setting("identity_type", "rackspace")
creds_file = os.path.expanduser("~/.rackspace_cloud_credentials")
pyrax.set_credential_file(creds_file)
clb = pyrax.cloud_loadbalancers
Expand Down
1 change: 1 addition & 0 deletions samples/cloud_loadbalancers/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import os
import pyrax

pyrax.set_setting("identity_type", "rackspace")
creds_file = os.path.expanduser("~/.rackspace_cloud_credentials")
pyrax.set_credential_file(creds_file)
clb = pyrax.cloud_loadbalancers
Expand Down
1 change: 1 addition & 0 deletions samples/cloud_loadbalancers/node_condition.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import os
import pyrax

pyrax.set_setting("identity_type", "rackspace")
creds_file = os.path.expanduser("~/.rackspace_cloud_credentials")
pyrax.set_credential_file(creds_file)
clb = pyrax.cloud_loadbalancers
Expand Down
1 change: 1 addition & 0 deletions samples/cloud_loadbalancers/session_persistence.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

import pyrax

pyrax.set_setting("identity_type", "rackspace")
creds_file = os.path.expanduser("~/.rackspace_cloud_credentials")
pyrax.set_credential_file(creds_file)
clb = pyrax.cloud_loadbalancers
Expand Down
1 change: 1 addition & 0 deletions samples/cloud_loadbalancers/ssl_termination.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

import pyrax

pyrax.set_setting("identity_type", "rackspace")
creds_file = os.path.expanduser("~/.rackspace_cloud_credentials")
pyrax.set_credential_file(creds_file)
clb = pyrax.cloud_loadbalancers
Expand Down
1 change: 1 addition & 0 deletions samples/cloud_networks/create_bastion.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
from pyrax import utils


pyrax.set_setting("identity_type", "rackspace")
creds_file = os.path.expanduser("~/.rackspace_cloud_credentials")
pyrax.set_credential_file(creds_file)
cs = pyrax.cloudservers
Expand Down
1 change: 1 addition & 0 deletions samples/cloud_networks/create_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import pyrax
from pyrax import utils

pyrax.set_setting("identity_type", "rackspace")
creds_file = os.path.expanduser("~/.rackspace_cloud_credentials")
pyrax.set_credential_file(creds_file)
cnw = pyrax.cloud_networks
Expand Down
1 change: 1 addition & 0 deletions samples/cloud_networks/delete_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
from pyrax import exc
from pyrax import utils

pyrax.set_setting("identity_type", "rackspace")
creds_file = os.path.expanduser("~/.rackspace_cloud_credentials")
pyrax.set_credential_file(creds_file)

Expand Down
1 change: 1 addition & 0 deletions samples/cloudfiles/container_cdn.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import os
import pyrax

pyrax.set_setting("identity_type", "rackspace")
creds_file = os.path.expanduser("~/.rackspace_cloud_credentials")
pyrax.set_credential_file(creds_file)
cf = pyrax.cloudfiles
Expand Down
1 change: 1 addition & 0 deletions samples/cloudfiles/container_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import pyrax
import pyrax.exceptions as exc

pyrax.set_setting("identity_type", "rackspace")
creds_file = os.path.expanduser("~/.rackspace_cloud_credentials")
pyrax.set_credential_file(creds_file)
cf = pyrax.cloudfiles
Expand Down
1 change: 1 addition & 0 deletions samples/cloudfiles/create_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import os
import pyrax

pyrax.set_setting("identity_type", "rackspace")
creds_file = os.path.expanduser("~/.rackspace_cloud_credentials")
pyrax.set_credential_file(creds_file)
cf = pyrax.cloudfiles
Expand Down
1 change: 1 addition & 0 deletions samples/cloudfiles/delete_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import pyrax
import pyrax.exceptions as exc

pyrax.set_setting("identity_type", "rackspace")
creds_file = os.path.expanduser("~/.rackspace_cloud_credentials")
pyrax.set_credential_file(creds_file)
cf = pyrax.cloudfiles
Expand Down
1 change: 1 addition & 0 deletions samples/cloudfiles/fetch_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import os
import pyrax

pyrax.set_setting("identity_type", "rackspace")
creds_file = os.path.expanduser("~/.rackspace_cloud_credentials")
pyrax.set_credential_file(creds_file)
cf = pyrax.cloudfiles
Expand Down
1 change: 1 addition & 0 deletions samples/cloudfiles/get_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import pyrax
import pyrax.exceptions as exc

pyrax.set_setting("identity_type", "rackspace")
creds_file = os.path.expanduser("~/.rackspace_cloud_credentials")
pyrax.set_credential_file(creds_file)
cf = pyrax.cloudfiles
Expand Down
Loading

0 comments on commit 0d5a18b

Please sign in to comment.