Skip to content

Commit

Permalink
updating storage endpoint property
Browse files Browse the repository at this point in the history
  • Loading branch information
earthmant committed Apr 22, 2018
1 parent 05adad5 commit 26afafd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cloudify_azure/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
# az cloud # endpoints.resourceManager
CONN_API_ENDPOINT = 'https://management.azure.com'
# az cloud # suffixes.storageEndpoint
CONN_STORAGE_ENDPOINT = "core.windows.net"
# CONN_STORAGE_ENDPOINT = "core.windows.net"

# API version constants
# Each service has its own API version independent of any other services
Expand Down
4 changes: 2 additions & 2 deletions cloudify_azure/resources/compute/virtualmachine.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def build_osdisk_profile(usr_osdisk=None):
osdisk['vhd'] = {
'uri': 'http://{0}.{1}/vhds/{2}.vhd'.format(
utils.get_rel_node_name(constants.REL_CONNECTED_TO_SA),
'blob.local.azurestack.external',
'blob.' + ctx.node.properties['storage_endpoint'],
osdisk.get('name'))
}
# Fill in the blanks if the user didn't specify
Expand Down Expand Up @@ -132,7 +132,7 @@ def build_datadisks_profile(usr_datadisks):
datadisk['vhd'] = {
'uri': 'http://{0}.{1}/vhds/{2}.vhd'.format(
utils.get_rel_node_name(constants.REL_CONNECTED_TO_SA),
'blob.local.azurestack.external',
'blob.' + ctx.node.properties['storage_endpoint'],
datadisk.get('name'))
}
# Fill in the blanks if the user didn't specify
Expand Down
4 changes: 4 additions & 0 deletions plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1251,6 +1251,10 @@ node_types:
default:
install_method: remote
port: 5985
storage_endpoint:
type: string
description: This is the suffix for the storage endpoint. Supported values are core.windows.net or local.azurestack.external.
default: core.windows.net
interfaces:
cloudify.interfaces.lifecycle:
create: pkg.cloudify_azure.resources.compute.virtualmachine.create
Expand Down

0 comments on commit 26afafd

Please sign in to comment.