Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
OSM Packages
Manage
Activity
Members
Labels
Plan
Issues
1
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
17
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vnf-onboarding
OSM Packages
Merge requests
!27
Add ubuntu_cloudinit and simple_nopasswd packages
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add ubuntu_cloudinit and simple_nopasswd packages
limon/osm-packages:master
into
master
Overview
2
Commits
3
Pipelines
0
Changes
22
Merged
limon
requested to merge
limon/osm-packages:master
into
master
4 years ago
Overview
2
Commits
3
Pipelines
0
Changes
32
Expand
Add ubuntu_cloudinit and simple_nopasswd packages
Edited
4 years ago
by
limon
1
0
Merge request reports
Viewing commit
3b07e39a
Prev
Next
Show latest version
32 files
+
559
−
170
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
32
Search (e.g. *.vue) (Ctrl+P)
3b07e39a
Re-build charm due to juju/layer-basic/#145 bug
· 3b07e39a
limon
authored
4 years ago
Signed-off-by:
limon
<
alimonj@indra.es
>
simple_nopasswd_vnf/charms/simple/actions/test deleted
100644 → 0
+
0
−
33
Options
#!/usr/bin/env python3
##
# Copyright 2016 Canonical Ltd.
# All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
##
import
sys
sys
.
path
.
append
(
'
lib
'
)
from
charms.reactive
import
main
,
set_flag
from
charmhelpers.core.hookenv
import
action_fail
,
action_name
"""
`set_state` only works here because it
'
s flushed to disk inside the `main()`
loop. remove_state will need to be called inside the action method.
"""
set_flag
(
'
actions.{}
'
.
format
(
action_name
()))
try
:
main
()
except
Exception
as
e
:
action_fail
(
repr
(
e
))
Loading