Skip to content

Commit

Permalink
Move get_cloud_init_data to parent class
Browse files Browse the repository at this point in the history
  • Loading branch information
micafer committed Jun 6, 2018
1 parent 1b2f6f1 commit 67981e7
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 51 deletions.
17 changes: 0 additions & 17 deletions IM/connectors/EC2.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,23 +497,6 @@ def get_default_subnet(self, conn):

return vpc_id, subnet_id

def get_cloud_init_data(self, radl):
"""
Get the cloud init data specified by the user in the RADL
"""
configure_name = None
if radl.contextualize.items:
system_name = radl.systems[0].name

for item in radl.contextualize.items.values():
if item.system == system_name and item.get_ctxt_tool() == "cloud_init":
configure_name = item.configure

if configure_name:
return radl.get_configure_by_name(configure_name).recipes
else:
return None

def launch(self, inf, radl, requested_radl, num_vm, auth_data):

im_username = "im_user"
Expand Down
17 changes: 0 additions & 17 deletions IM/connectors/GCE.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,23 +353,6 @@ def get_default_net(self, driver):
else:
return None

def get_cloud_init_data(self, radl):
"""
Get the cloud init data specified by the user in the RADL
"""
configure_name = None
if radl.contextualize.items:
system_name = radl.systems[0].name

for item in radl.contextualize.items.values():
if item.system == system_name and item.get_ctxt_tool() == "cloud_init":
configure_name = item.configure

if configure_name:
return radl.get_configure_by_name(configure_name).recipes
else:
return None

def create_firewall(self, inf, net_name, radl, driver):
"""
Create a firewall for the net using the outports param
Expand Down
17 changes: 0 additions & 17 deletions IM/connectors/OCCI.py
Original file line number Diff line number Diff line change
Expand Up @@ -552,23 +552,6 @@ def get_os_tpl_scheme(self, occi_info, os_tpl):
"""
return self.get_scheme(occi_info, os_tpl, 'os_tpl')

def get_cloud_init_data(self, radl):
"""
Get the cloud init data specified by the user in the RADL
"""
configure_name = None
if radl.contextualize.items:
system_name = radl.systems[0].name

for item in radl.contextualize.items.values():
if item.system == system_name and item.get_ctxt_tool() == "cloud_init":
configure_name = item.configure

if configure_name:
return radl.get_configure_by_name(configure_name).recipes
else:
return None

def create_volumes(self, system, auth_data):
"""
Attach the required volumes (in the RADL) to the launched instance
Expand Down

0 comments on commit 67981e7

Please sign in to comment.