config command changes format of empty values. Clouse #245

This commit is contained in:
Dmitry
2017-10-07 18:50:16 -07:00
parent a2ed53b615
commit 276e910ba8
2 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -12,7 +12,7 @@ class CmdConfig(CmdBase):
# Using configobj because it doesn't
# drop comments like configparser does.
self.configobj = configobj.ConfigObj(self._config_path)
self.configobj = configobj.ConfigObj(self._config_path, write_empty_values=True)
@property
def _config_path(self):
@@ -82,7 +82,7 @@ class CmdConfig(CmdBase):
if self.parsed_args.unset:
return self.unset()
if self.parsed_args.value == None:
if self.parsed_args.value is None:
return self.show()
return self.set()
+5 -5
View File
@@ -19,14 +19,14 @@ class CmdInit(CmdBase):
DataDir = {}
# Default target
Target =
Target =
# Supported clouds: AWS, GCP
Cloud = AWS
# This global storage path is going to be deprecated in the next version.
# Please use StoragePath from a specific cloud instead.
#StoragePath =
#StoragePath =
# Log levels: Debug, Info, Warning and Error
LogLevel = Info
@@ -41,7 +41,7 @@ StoragePath = dvc/tutorial
Type = t2.nano
Image = ami-2d39803a
SpotPrice =
SpotPrice =
SpotTimeout = 300
KeyPairName = dvc-key
@@ -59,8 +59,8 @@ EbsOptimized = false
AllDisksAsRAID0 = false
[GCP]
StoragePath =
ProjectName =
StoragePath =
ProjectName =
'''
EMPTY_FILE_NAME = '.empty'