mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #46330 from bdrung/fix_kubernetes_test_create_deployments
Fix ValueError for template in AppsV1beta1DeploymentSpec
This commit is contained in:
commit
5c4c182d75
1 changed files with 1 additions and 1 deletions
|
@ -1468,7 +1468,7 @@ def __dict_to_deployment_spec(spec):
|
|||
'''
|
||||
Converts a dictionary into kubernetes AppsV1beta1DeploymentSpec instance.
|
||||
'''
|
||||
spec_obj = AppsV1beta1DeploymentSpec()
|
||||
spec_obj = AppsV1beta1DeploymentSpec(template=spec.get('template', ''))
|
||||
for key, value in iteritems(spec):
|
||||
if hasattr(spec_obj, key):
|
||||
setattr(spec_obj, key, value)
|
||||
|
|
Loading…
Add table
Reference in a new issue