summaryrefslogtreecommitdiff
path: root/util/cpt_upgraders/cpu-pid.py
diff options
context:
space:
mode:
Diffstat (limited to 'util/cpt_upgraders/cpu-pid.py')
-rw-r--r--util/cpt_upgraders/cpu-pid.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/util/cpt_upgraders/cpu-pid.py b/util/cpt_upgraders/cpu-pid.py
new file mode 100644
index 000000000..4daf3742a
--- /dev/null
+++ b/util/cpt_upgraders/cpu-pid.py
@@ -0,0 +1,12 @@
+def upgrader(cpt):
+ for sec in cpt.sections():
+ import re
+ # Search for a CPUs
+ if re.search('.*sys.*cpu', sec):
+ try:
+ junk = cpt.get(sec, 'instCnt')
+ cpt.set(sec, '_pid', '0')
+ except ConfigParser.NoOptionError:
+ pass
+
+legacy_version = 3