"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "zun/cmd/status.py" between
zun-6.0.0.tar.gz and zun-7.0.0.tar.gz

About: OpenStack Zun is a Container Management service for OpenStack.
The "Wallaby" series (latest release).

status.py  (zun-6.0.0):status.py  (zun-7.0.0)
skipping to change at line 19 skipping to change at line 19
# Unless required by applicable law or agreed to in writing, software # Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
import os import os
import shutil import shutil
import sys import sys
from oslo_upgradecheck import common_checks
from oslo_upgradecheck import upgradecheck from oslo_upgradecheck import upgradecheck
from zun.common.i18n import _ from zun.common.i18n import _
import zun.conf import zun.conf
CONF = zun.conf.CONF CONF = zun.conf.CONF
class Checks(upgradecheck.UpgradeCommands): class Checks(upgradecheck.UpgradeCommands):
"""Contains upgrade checks """Contains upgrade checks
skipping to change at line 58 skipping to change at line 59
It needs to be removed after adding any real upgrade check It needs to be removed after adding any real upgrade check
""" """
if self._cmd_exists('numactl'): if self._cmd_exists('numactl'):
return upgradecheck.Result(upgradecheck.Code.SUCCESS) return upgradecheck.Result(upgradecheck.Code.SUCCESS)
else: else:
msg = _("The program 'numactl' is currently not installed.") msg = _("The program 'numactl' is currently not installed.")
return upgradecheck.Result(upgradecheck.Code.FAILURE, msg) return upgradecheck.Result(upgradecheck.Code.FAILURE, msg)
_upgrade_checks = ( _upgrade_checks = (
(_('Numactl Check'), _numactl_check), (_('Numactl Check'), _numactl_check),
(_('Policy File JSON to YAML Migration'),
(common_checks.check_policy_json, {'conf': CONF})),
) )
def main(): def main():
return upgradecheck.main( return upgradecheck.main(
CONF, project='zun', upgrade_command=Checks()) CONF, project='zun', upgrade_command=Checks())
if __name__ == '__main__': if __name__ == '__main__':
sys.exit(main()) sys.exit(main())
 End of changes. 2 change blocks. 
0 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)