Skip to content

Commit a0d6d76

Browse files
Merge pull request #66 from splunk/dev-app-path
fix: standardize app naming and update deployment path source
2 parents 5a3fe72 + fe9781d commit a0d6d76

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

apps/Splunk_TA_app1/default/app.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ version = 1.0.8
1111

1212
[ui]
1313
is_visible = 0
14-
label = app1
14+
label = App1
1515
docs_section_override = AddOns:released
1616

1717
[package]
18-
id = Splunk_TA_app1
18+
id = Splunk_TA_App1
1919

2020
[triggers]
2121
reload.addon_builder = simple

deploy.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
from utils import *
88

99
# FOR LOCAL TESTING
10-
from dotenv import load_dotenv
11-
load_dotenv(dotenv_path="local.env")
10+
# from dotenv import load_dotenv
11+
# load_dotenv(dotenv_path="local.env")
1212

1313
def main():
1414
if len(sys.argv) != 2:
@@ -45,7 +45,8 @@ def main():
4545

4646
### 2. Upload_local_configuration ###
4747
# Check if the configuration exists for the app
48-
path = check_all_letter_cases(sys.argv[1], app)
48+
path = os.path.join("environments", sys.argv[1], app)
49+
print(path)
4950
if path:
5051
unpack_merge_conf_and_meta_repack(app, path)
5152
else:

environments/uat/es/deployment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
target:
22
url: https://staging.admin.splunk.com/scv-shw-217bd09bcbf264/adminconfig/v2/apps/victoria
33
apps:
4-
Splunk_TA_app1:
4+
Splunk_TA_App1:
55
s3-bucket: splunk-apps-deployment
66
source: apps/Splunk_TA_app1.tgz
77
config:

0 commit comments

Comments
 (0)