Skip to content

Commit 0621823

Browse files
committed
Allow to set the SRV record via env
1 parent fc430be commit 0621823

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mem3_helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
def construct_service_record():
1717
# Drop our Pod's unique identity and replace with '_couchdb._tcp'
18-
return '.'.join(['_couchdb', '_tcp'] + socket.getfqdn().split('.')[1:])
18+
return os.getenv('SRV_RECORD') or '.'.join(['_couchdb', '_tcp'] + socket.getfqdn().split('.')[1:])
1919

2020
@backoff.on_exception(
2121
backoff.expo,

0 commit comments

Comments
 (0)