Add support of disabled_components for package repository.
According to MaaS API it is possible to setup disabled components for package repository.
It is added to salt-formula.
Closes-bug: PROD-35692
Change-Id: I9c6c3722a20075d331379919088fd7b509f2157f
diff --git a/_modules/maas.py b/_modules/maas.py
index 0152eba..150fd1b 100644
--- a/_modules/maas.py
+++ b/_modules/maas.py
@@ -351,7 +351,9 @@
'enabled': str(package_repository['enabled'] and 1 or 0),
}
if 'disabled_pockets' in package_repository:
- data['disabled_pockets'] = package_repository['disable_pockets'],
+ data['disabled_pockets'] = package_repository['disabled_pockets'],
+ if 'disabled_components' in package_repository:
+ data['disabled_components'] = package_repository['disabled_components'],
return data
def update(self, new, old):