"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "sahara/cli/sahara_status.py" between
sahara-14.0.0.tar.gz and sahara-15.0.0.tar.gz

About: OpenStack Sahara provides an ability to provision, start, shutdown, scale Hadoop cluster on OpenStack.
The "Xena" series (latest release).

sahara_status.py  (sahara-14.0.0):sahara_status.py  (sahara-15.0.0)
skipping to change at line 18 skipping to change at line 18
# #
# 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 sys import sys
from oslo_config import cfg from oslo_config import cfg
from oslo_upgradecheck import common_checks
from oslo_upgradecheck import upgradecheck from oslo_upgradecheck import upgradecheck
from sahara.i18n import _ from sahara.i18n import _
CONF = cfg.CONF CONF = cfg.CONF
class Checks(upgradecheck.UpgradeCommands): class Checks(upgradecheck.UpgradeCommands):
"""Contains upgrade checks """Contains upgrade checks
Various upgrade checks should be added as separate methods in this class Various upgrade checks should be added as separate methods in this class
and added to _upgrade_checks tuple. and added to _upgrade_checks tuple.
""" """
def _sample_check(self):
"""This is sample check added to test the upgrade check framework
It needs to be removed after adding any real upgrade check
"""
return upgradecheck.Result(upgradecheck.Code.SUCCESS, 'Sample detail')
_upgrade_checks = ( _upgrade_checks = (
# Sample check added for now. (_("Policy File JSON to YAML Migration"),
# Whereas in future real checks must be added here in tuple (common_checks.check_policy_json, {'conf': CONF})),
(_('Sample Check'), _sample_check),
) )
def main(): def main():
return upgradecheck.main( return upgradecheck.main(
CONF, project='sahara', upgrade_command=Checks()) CONF, project='sahara', upgrade_command=Checks())
if __name__ == '__main__': if __name__ == '__main__':
sys.exit(main()) sys.exit(main())
 End of changes. 3 change blocks. 
10 lines changed or deleted 3 lines changed or added

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