projects
/
osm
/
devops.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'v8.0'
[osm/devops.git]
/
installers
/
charm
/
pla
/
src
/
charm.py
diff --git
a/installers/charm/pla/src/charm.py
b/installers/charm/pla/src/charm.py
index
e137394
..
785766d
100755
(executable)
--- a/
installers/charm/pla/src/charm.py
+++ b/
installers/charm/pla/src/charm.py
@@
-13,10
+13,11
@@
# See the License for the specific language governing permissions and
# limitations under the License.
# See the License for the specific language governing permissions and
# limitations under the License.
-import sys
+from glob import glob
import logging
import logging
-
-sys.path.append("lib")
+from pathlib import Path
+from string import Template
+import sys
from ops.charm import CharmBase
from ops.framework import StoredState, Object
from ops.charm import CharmBase
from ops.framework import StoredState, Object
@@
-27,9
+28,9
@@
from ops.model import (
WaitingStatus,
)
WaitingStatus,
)
-from glob import glob
-from pathlib import Path
-from string import Template
+
+sys.path.append("lib")
+
logger = logging.getLogger(__name__)
logger = logging.getLogger(__name__)
@@
-84,7
+85,7
@@
class PLACharm(CharmBase):
config = self.framework.model.config
ports = [
config = self.framework.model.config
ports = [
- {"name": "port", "containerPort": config["port"], "protocol": "TCP",},
+ {"name": "port", "containerPort": config["port"], "protocol": "TCP",
},
]
config_spec = {
]
config_spec = {