mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 07:26:29 +00:00
17 lines
629 B
Python
17 lines
629 B
Python
from bootstrapvz.base import Task
|
|
from bootstrapvz.common import phases
|
|
from bootstrapvz.providers.oracle.apiclient import OracleStorageAPIClient
|
|
|
|
|
|
class InstantiateAPIClient(Task):
|
|
description = 'Instantiating Oracle Storage Cloud API client'
|
|
phase = phases.preparation
|
|
|
|
@classmethod
|
|
def run(cls, info):
|
|
info._oracle['client'] = OracleStorageAPIClient(
|
|
username=info.manifest.provider['credentials']['username'],
|
|
password=info.manifest.provider['credentials']['password'],
|
|
identity_domain=info.manifest.provider['credentials']['identity-domain'],
|
|
container=info.manifest.provider['container'],
|
|
)
|