Revision 38a6e2e1
b/lib/objects.py | ||
---|---|---|
1508 | 1508 |
# instance policy added before 2.6 |
1509 | 1509 |
if self.ipolicy is None: |
1510 | 1510 |
self.ipolicy = FillIPolicy(constants.IPOLICY_DEFAULTS, {}) |
1511 |
else: |
|
1512 |
# we can either make sure to upgrade the ipolicy always, or only |
|
1513 |
# do it in some corner cases (e.g. missing keys); note that this |
|
1514 |
# will break any removal of keys from the ipolicy dict |
|
1515 |
self.ipolicy = FillIPolicy(constants.IPOLICY_DEFAULTS, self.ipolicy) |
|
1511 | 1516 |
|
1512 | 1517 |
@property |
1513 | 1518 |
def primary_hypervisor(self): |
Also available in: Unified diff