@@ -216,7 +216,7 @@ def plugin_get_value(self, key):
216216 # might be better to move this to argparsing during refactor and just have
217217 # configuration return defaults or keys or something
218218 def update (
219- self , namespace , allowed_defaults , action = None
219+ self , namespace , allowed_defaults
220220 ): # pylint: disable=too-many-branches
221221 """
222222 This updates a Namespace (as returned by ArgumentParser) with config values
@@ -247,17 +247,6 @@ def update(
247247 value = None
248248 if self .config .has_option (username , key ):
249249 value = self .config .get (username , key )
250- # different types of database creation use different endpoints,
251- # so we need to set the default engine value based on the type
252- elif key == "engine" :
253- if action == "mysql-create" and self .config .has_option (
254- username , "mysql_engine"
255- ):
256- value = self .config .get (username , "mysql_engine" )
257- elif action == "postgresql-create" and self .config .has_option (
258- username , "postgresql_engine"
259- ):
260- value = self .config .get (username , "postgresql_engine" )
261250 else :
262251 value = ns_dict [key ]
263252
@@ -354,15 +343,6 @@ def configure(
354343 images = [
355344 i ["id" ] for i in _do_get_request (self .base_url , "/images" )["data" ]
356345 ]
357- engines_list = _do_get_request (self .base_url , "/databases/engines" )[
358- "data"
359- ]
360- mysql_engines = [
361- e ["id" ] for e in engines_list if e ["engine" ] == "mysql"
362- ]
363- postgresql_engines = [
364- e ["id" ] for e in engines_list if e ["engine" ] == "postgresql"
365- ]
366346
367347 is_full_access = _check_full_access (self .base_url , token )
368348
@@ -414,26 +394,6 @@ def configure(
414394 ),
415395 )
416396
417- config ["mysql_engine" ] = _default_thing_input (
418- "Default Engine to create a Managed MySQL Database." ,
419- mysql_engines ,
420- "Default Engine (Optional): " ,
421- "Please select a valid MySQL Database Engine, or press Enter to skip" ,
422- current_value = _config_get_with_default (
423- self .config , username , "mysql_engine"
424- ),
425- )
426-
427- config ["postgresql_engine" ] = _default_thing_input (
428- "Default Engine to create a Managed PostgreSQL Database." ,
429- postgresql_engines ,
430- "Default Engine (Optional): " ,
431- "Please select a valid PostgreSQL Database Engine, or press Enter to skip" ,
432- current_value = _config_get_with_default (
433- self .config , username , "postgresql_engine"
434- ),
435- )
436-
437397 if auth_users :
438398 config ["authorized_users" ] = _default_thing_input (
439399 "Select the user that should be given default SSH access to new Linodes." ,
0 commit comments