Skip to content

Commit

Permalink
Fix error when no in-line variable for jinja2 app template (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
bitonio authored Aug 17, 2023
1 parent a66c1df commit dd8a685
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 30 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.5.8
0.5.9
2 changes: 1 addition & 1 deletion bin/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def __init__(self, config_values, configuration, flags=None):
update_parser = subsub.add_parser("update", help="Update an existing application")
update_parser.add_argument('--var', dest="variables", action='append', nargs='+')
create_parser = subsub.add_parser("create", help="Create a new application")
create_parser.add_argument('--var', dest="variables", action='append', nargs='+')
create_parser.add_argument('--var', dest="variables", default=[], action='append', nargs='+')
subsub.add_parser("delete", help="Delete an application")
subsub.add_parser("view", help="Dump application configuration (JSON)")
subsub.add_parser("viewgroups", help="View groups associated to application")
Expand Down
2 changes: 1 addition & 1 deletion cli.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"commands": [
{
"name": "eaa",
"version": "0.5.8",
"version": "0.5.9",
"description": "Akamai CLI for Enterprise Application Access (EAA)"
}
]
Expand Down
31 changes: 5 additions & 26 deletions docs/examples/webapp.json.j2
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"eaa_cli_comment": [
"This is an example of JSON template to create an EAA web application "
"This is an example of JSON template to create an EAA web application ",
"with a single command line using Akamai CLI and EAA package.",
"To create the app, use the following command:",
"cat webapp.json.j2 | akamai eaa app - create",
Expand All @@ -21,29 +21,8 @@
"servers": [
{"origin_host": "10.0.2.3", "orig_tls": "false", "origin_port": 443, "origin_protocol": "https"}
],
"agents": [
{"name": "my-connector-1", "uuid_url": "connector-1-uuid"},
{"name": "my-connector-1", "uuid_url": "connector-2-uuid"}
],
"idp": {
"idp_id": "idp-1-uuid"
},
"directories": [
{
"name": "AD Domain AkamaiDemo.net (global)",
"uuid_url": "directory-uuid"
}
],
"groups": [
{
"name": "Administrators",
"enable_mfa": "inherit",
"uuid_url": "group-admin-uuid"
},
{
"name": "Support",
"enable_mfa": "inherit",
"uuid_url": "group-support-uuid"
}
]
"agents": {% include 'includes/akdemo-amer-2maincon.json' %},
"idp": {% include 'includes/akdemo-idp.json' %},
"directories": {% include 'includes/akdemo-directory.json' %},
"groups": {% include 'includes/akdemo-groups-default.json' %}
}
2 changes: 1 addition & 1 deletion libeaa/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"""

#: cli-eaa version [PEP 8]
__version__ = '0.5.8'
__version__ = '0.5.9'

import sys
from threading import Event
Expand Down

0 comments on commit dd8a685

Please sign in to comment.