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 3030 - name : Install dependencies
3131 run : poetry install
3232
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
3434 with :
3535 use_server_key : true
3636 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
77## Build instructions
88
991 . 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.
11113 . Set the environment variable ` LAUNCHDARKLY_FLAG_KEY ` to the LaunchDarkly boolean flag key you wish to evaluate.
12124 . Run ` poetry run python main.py ` .
1313
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 44from ld_openfeature import LaunchDarklyProvider
55from os import getenv
66
7- sdk_key = getenv ("LAUNCHDARKLY_SERVER_KEY " , "" )
7+ sdk_key = getenv ("LAUNCHDARKLY_SDK_KEY " , "" )
88flag_key = getenv ("LAUNCHDARKLY_FLAG_KEY" , "" )
99
1010if 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" )
1212 exit (1 )
1313elif flag_key == "" :
1414 print ("*** Set the 'LAUNCHDARKLY_FLAG_KEY' environment variable before running this script" )
2424context = EvaluationContext ("example-user-key" , {"name" : "Sandy" })
2525
2626flag_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"
77
88[tool .poetry .dependencies ]
99python = " ^3.8"
10- launchdarkly-openfeature-server = " ^0.1 .0"
10+ launchdarkly-openfeature-server = " ^0.2 .0"
1111
1212
1313[build-system ]
You can’t perform that action at this time.
0 commit comments