Skip to content

Commit 17530fc

Browse files
committed
Fix merge issue with FindFilesBase class command.
1 parent 4eac293 commit 17530fc

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

pyinfra/facts/files.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,13 @@ class FindFilesBase(FactBase):
241241
def process(output):
242242
return output
243243

244+
def command(self, path, quote_path=True):
245+
return make_formatted_string_command(
246+
'find {0} -type {type_flag} || true',
247+
QuoteString(path) if quote_path else path,
248+
type_flag=self.type_flag,
249+
)
250+
244251

245252
class FindFiles(FindFilesBase):
246253
'''
@@ -249,13 +256,6 @@ class FindFiles(FindFilesBase):
249256

250257
type_flag = 'f'
251258

252-
def command(self, path, quote_path=True):
253-
return make_formatted_string_command(
254-
'find {0} -type {type_flag} || true',
255-
QuoteString(path) if quote_path else path,
256-
type_flag=self.type_flag,
257-
)
258-
259259

260260
class FindLinks(FindFilesBase):
261261
'''

0 commit comments

Comments
 (0)