File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 30
30
- name : Install dependencies
31
31
run : poetry install
32
32
33
- - uses : launchdarkly/gh-actions/actions/verify-hello-app@verify-hello-app-v1 .0.0
33
+ - uses : launchdarkly/gh-actions/actions/verify-hello-app@verify-hello-app-v2 .0.0
34
34
with :
35
35
use_server_key : true
36
36
role_arn : ${{ vars.AWS_ROLE_ARN }}
Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ We've built a simple console script that demonstrates how LaunchDarkly's OpenFea
7
7
## Build instructions
8
8
9
9
1 . Install the project dependencies by running ` poetry install `
10
- 2 . Set the environment variable ` LAUNCHDARKLY_SERVER_KEY ` to your LaunchDarkly SDK key.
10
+ 2 . Set the environment variable ` LAUNCHDARKLY_SDK_KEY ` to your LaunchDarkly SDK key.
11
11
3 . Set the environment variable ` LAUNCHDARKLY_FLAG_KEY ` to the LaunchDarkly boolean flag key you wish to evaluate.
12
12
4 . Run ` poetry run python main.py ` .
13
13
14
- You should see the message ` "Feature flag ' <flag key>' is <True/False> for this context " ` .
14
+ You should see the message ` "The <flag key> feature flag evaluates to <true/false> " ` .
Original file line number Diff line number Diff line change 4
4
from ld_openfeature import LaunchDarklyProvider
5
5
from os import getenv
6
6
7
- sdk_key = getenv ("LAUNCHDARKLY_SERVER_KEY " , "" )
7
+ sdk_key = getenv ("LAUNCHDARKLY_SDK_KEY " , "" )
8
8
flag_key = getenv ("LAUNCHDARKLY_FLAG_KEY" , "" )
9
9
10
10
if sdk_key == "" :
11
- print ("*** Set the 'LAUNCHDARKLY_SERVER_KEY ' environment variable before running this script" )
11
+ print ("*** Set the 'LAUNCHDARKLY_SDK_KEY ' environment variable before running this script" )
12
12
exit (1 )
13
13
elif flag_key == "" :
14
14
print ("*** Set the 'LAUNCHDARKLY_FLAG_KEY' environment variable before running this script" )
24
24
context = EvaluationContext ("example-user-key" , {"name" : "Sandy" })
25
25
26
26
flag_value = client .get_boolean_value (flag_key , False , context )
27
- print (f"*** Feature flag ' { flag_key } ' is { flag_value } for this context " )
27
+ print (f"*** The { flag_key } feature flag evaluates to { flag_value } . " )
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ readme = "README.md"
7
7
8
8
[tool .poetry .dependencies ]
9
9
python = " ^3.8"
10
- launchdarkly-openfeature-server = " ^0.1 .0"
10
+ launchdarkly-openfeature-server = " ^0.2 .0"
11
11
12
12
13
13
[build-system ]
You can’t perform that action at this time.
0 commit comments