Skip to content

Commit 0d57728

Browse files
committed
Revert "system_spec => system"
This reverts commit 951fea4.
1 parent 0faed37 commit 0d57728

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

ybd/deployment.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,31 +31,31 @@ def deploy(defs, target):
3131
deploy_system(defs, system)
3232

3333

34-
def deploy_system(defs, system, parent_location=''):
34+
def deploy_system(defs, system_spec, parent_location=''):
3535
'''Deploy a system and subsystems recursively.
3636
37-
Takes a system (i.e. an entry in the "systems" list in a cluster
37+
Takes a system spec (i.e. an entry in the "systems" list in a cluster
3838
definition), and optionally a path to a parent system tree. If
3939
`parent_location` is given then the `location` given in the cluster
4040
definition for the subsystem is appended to `parent_location`, with
4141
the result being used as the location for the deployment extensions.
4242
4343
'''
44-
system = defs.get(system['path'])
45-
deploy_defaults = system.get('deploy-defaults')
44+
system = defs.get(system_spec['path'])
45+
deploy_defaults = system_spec.get('deploy-defaults')
4646

4747
with sandbox.setup(system):
4848
app.log(system, 'Extracting system artifact into', system['sandbox'])
4949
with open(cache.get_cache(defs, system), 'r') as artifact:
5050
call(['tar', 'x', '--directory', system['sandbox']],
5151
stdin=artifact)
5252

53-
for subsystem in system.get('subsystems', []):
53+
for subsystem in system_spec.get('subsystems', []):
5454
if deploy_defaults:
5555
subsystem = dict(deploy_defaults.items() + subsystem.items())
5656
deploy_system(defs, subsystem, parent_location=system['sandbox'])
5757

58-
for name, deployment in system.get('deploy', {}).iteritems():
58+
for name, deployment in system_spec.get('deploy', {}).iteritems():
5959
method = deployment.get('type') or deployment.get('upgrade-type')
6060
method = os.path.basename(method)
6161
if deploy_defaults:

0 commit comments

Comments
 (0)