Skip to content

Commit 2fd05aa

Browse files
committedJul 31, 2020
updated installation function to use new file parameter convention
1 parent b53aadf commit 2fd05aa

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed
 

‎flexio.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ image:
44
src: 'https://static.flex.io/assets/logos/mysql.png'
55
alt: MySQL logo
66

7-
functions:
7+
installation:
88
- path: mysql-import.py
99

1010
prompts:

‎mysql-import.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ def create_functions(flex):
3636
# create functions for each of the selected tables
3737
for f in files:
3838

39-
file_parts = f.split(':/')
40-
file_name = file_parts[1]
39+
file_name = f.get('name')
40+
if file_name is None:
41+
continue
4142

4243
function_info = get_function_info(connection, file_name)
4344
flex.index.remove(function_info['name'])

0 commit comments

Comments
 (0)